<include file="Public:header" />
<div class="headbar clearfix">
    <div class="position"><span>配置</span><span>></span><span>微信管理</span></div>
</div>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Partner/css/menu.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Partner/css/menu/style.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Partner/css/menu/navigation.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Partner/css/menu/jbox-min.css" />
<script>
    URL = '/yian/index.php/Partner';
</script>
<div class="content_box">
    <div class="content">
        <div class="content-right">

            <input name="content" value='{$menu}' id="j-initdata" type="hidden">
            <input name="template_id" value="1" id="j-pageID" type="hidden">

            <div class="diy clearfix">
                <div id="diy-phone">
                    <div class="diy-phone-header">
                        <i class="diy-phone-receiver"></i>
                        <div class="diy-phone-title">导航设置</div>
                    </div>
                    <div class="diy-phone-contain" id="diy-contain">
                        <div class="nodrag">
                            
                        </div>
                        <!-- <div class="drag"></div> -->
                    </div>
                    <i class="diy-phone-footer"></i>
                </div>

                <div id="diy-ctrl"></div>
            </div>

            <div class="diy-actions" style="width: 1621px;">
                <div class="diy-actions-submit">
                    <a href="javascript:;" class="btn btn-primary" id="j-savePage">保存</a>
                </div>
            </div>
        </div>
    </div>

</div>


<script type="text/j-template" id="tpl_tooltips">
    <div class="tooltips" style="display:none;">
        <span class="tooltips-arrow tooltips-arrow-<%= placement %>"><em>◆</em><i>◆</i></span>
        <%= content %>
    </div>
</script>
<!-- end tooltips -->

<script type="text/j-template" id="tpl_hint">
    <div class="hint hint-<%= type %>"><%= content %></div>
</script>
<!-- end hint -->

<script type="text/j-template" id="tpl_jbox_simple">
    <div class="mgt30"><%= content %></div>
</script>
<!-- end tpl_jbox_simple -->

<script type="text/j-template" id="tpl_qrcode">
    <div id="qrcode">
        <img src="<%= src %>">
        <a href="javascript:;" class="qrcode-btn j-closeQrcode"><i class="gicon-remove white"></i></a>
    </div>
</script>
<!-- end qrcode -->

<!-- diy common start -->
<script type="text/j-template" id="tpl_diy_conitem">
    <div class="diy-conitem">
        <%= html %>
        <div class="diy-conitem-action">
            <div class="diy-conitem-action-btns">
                <a href="javascript:;" class="diy-conitem-btn diy-edit j-edit">编辑</a>
                <a href="javascript:;" class="diy-conitem-btn diy-del j-del">删除</a>
            </div>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl">
    <div class="diy-ctrl-item" data-origin="item">
        <%= html %>
    </div>
</script>
<!-- diy common end -->

<!-- type1 fulltext start-->
<script type="text/j-template" id="tpl_diy_con_type1">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">
            <div class="fulltext"><%= HYD.DIY.Unit.html_decode(content.fulltext) %></div>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type1">
    <div class="formitems">
        <label class="fi-name" style="width:84px;">模块上下边距：</label>
        <div class="form-controls" style="margin-left:94px;">
            <div id="slider" class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%=content.modulePadding%>px</span>
        </div>
    </div>

    <textarea id="editor<%= id %>" style="width:100%;min-height:485px;"></textarea>
</script>
<!-- type1 fulltext end--><!-- 启 -->

<!-- type2 title start-->
<script type="text/j-template" id="tpl_diy_con_type2">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">
            <%if(content.layout1_style==1 || typeof content.layout1_style=="undefined"){%>
            <section class="members_special <%= content.direction %> titlestyle<%=content.style || 0%>" 
                     <% if(content.style=="3"){ %>style="border-left-color:<%= content.BackgroundColor %>"<% } %>>

                     <%
                     var titleColor="#FFF";
                     if(content.titleColor){
                     titleColor=content.titleColor;
                     }
                     %>

                     <h2 class="j-title" style="color:<%=content.titleColor%>"><%= content.title %></h2>


                <% } %>
            </section>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type2">
    <div class="formitems">  
        <label class="fi-name">标题：</label>  
        <div class="form-controls">  
            <input type="text" name="title" class="input" value="<%= content.title %>">
            <span class="fi-help-text"></span>
        </div>  
    </div>
    <div class="formitems">
        <label class="fi-name">显示类型：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="style" value="0" <% if(content.style=="0" ||content.style == undefined){ %>checked<% } %> >样式一</label>
                <label><input type="radio" name="style" value="1" <% if(content.style=="1"){ %>checked<% } %> >样式二</label>
                <label><input type="radio" name="style" value="2" <% if(content.style=="2"){ %>checked<% } %> >样式三</label>
                <label><input type="radio" name="style" value="3" <% if(content.style=="3"){ %>checked<% } %> >样式四</label>
            </div>
        </div>
    </div>
    <% if(content.style=="3"){ %>
    <div class="formitems">
        <label class="fi-name">边框颜色：</label> 
        <div class="form-controls">	
            <a href="javascript:;" class="colorPicker j-imgNav-cp" data-color="<%= content.BackgroundColor%>" style="background-color:<%= content.BackgroundColor%>">点击选择</a>
        </div>
    </div>
    <% } %>
    <div class="formitems">
        <label class="fi-name">显示方式：</label>
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="direction" value="left" <% if(content.direction=="left"){ %>checked<% } %> >居左</label>
                <label><input type="radio" name="direction" value="center" <% if(content.direction=="center"){ %>checked<% } %> >居中</label>
                <label><input type="radio" name="direction" value="right" <% if(content.direction=="right"){ %>checked<% } %> >居右</label>
            </div>
        </div>
    </div>
    <div class="formitems">
        <label class="fi-name">模块上下边距：</label>
        <div class="form-controls">
            <div class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%=content.modulePadding%>px</span>
        </div>
    </div>

    <!-- 修改文字颜色 -->
    <div class="formitems">
        <label class="fi-name">文字颜色：</label> 
        <div class="form-controls">
            <%
            var titleColor="#FFF";

            if(content.titleColor){
            titleColor=content.titleColor;
            }
            %>
            <a href="javascript:;" class="colorPicker j-textColor-cp" data-color="<%=titleColor%>" style="background-color:<%=titleColor%>">点击选择</a>
        </div>
    </div>
</script>
<!-- type2 title end-->

<!-- type3 custModule start--><!-- 博 -->
<script type="text/j-template" id="tpl_diy_con_type3">
    <div class="members_con">
        <% if(content){ %>
        <div class="type3_custModule">自定义模块：<%= content.title %></div>
        <% } else { %>
        <div class="type3_custModule">『编辑自定义模块』</div>
        <% }%>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type3">
    <div class="formitems">  
        <label class="fi-name">自定义模块：</label>  
        <div class="form-controls pdt3">
            <% if(content){ %>
            <a href="<%= content.link %>" target="_blank" class="badge badge-success mgt3 type3_custModule_ctrl"><%= content.title %></a>
            <a href="javascript:;" class="btn btn-primary btn-mini j-btn-modify">修改</a>
            <% } else { %>
            <a href="javascript:;" class="btn btn-primary btn-mini j-btn-add">添加</a>
            <% }%>
            <input type="hidden" class="j-verify"><span class="fi-help-text"></span>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type3_modify">
    <a href="<%= content.link %>" target="_blank" class="badge badge-success mgt3 type3_custModule_ctrl"><%= content.title %></a>
    <a href="javascript:;" class="btn btn-primary btn-mini j-btn-modify">修改</a>
</script>
<!-- type3 custModule end-->

<!-- type4 goods start-->
<script type="text/j-template" id="tpl_diy_con_type4">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">
            <% if(content.version == 1){ %>
            <% if(content.layout==1){ %>
            <% if(content.goodstyle==1){ %>
            <section class="members_goodspic">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods,index){ %>
                    <li class="b_mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="100%">
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="100%">
                                <% } %> 
                            </a>
                            <% if(content.showIco || content.showPrice){ %>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>"><%= goods.title %></p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;<%= goods.original_price%></span></p>
                            <% } %>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl"><i class="smallsize">&yen;</i><%= goods.price%></span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                        </div>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl"><i class="smallsize">&yen;</i>1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl"><i class="smallsize">&yen;</i>1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl"><i class="smallsize">&yen;</i>1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView4.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl"><i class="smallsize">&yen;</i>1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                        </div>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } else if(content.goodstyle==2){ %>
            <section class="members_goodspic">
                <ul class="goodstyle2">
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods,index){ %>
                    <li class="b_mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="100%">
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="100%">
                                <% } %> 
                            </a>
                            <% if(content.showIco || content.showPrice){ %>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>"><%= goods.title %></p>
                            <% } %>
                            <em class="r-selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <p class="pic_box"><span class="yj">&yen;<%= goods.original_price%></span></p>
                            <% } %>
                            <p><span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;<%= goods.price%></span></p>
                            <a href="" class="addcart"><i></i></a>
                        </div>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>

                            <em class="r-selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p><span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;1.00</span></p>
                            <a href="" class="addcart"><i></i></a>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <em class="r-selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p><span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;1.00</span></p>
                            <a href="" class="addcart"><i></i></a>
                        </div>
                    </li>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <em class="r-selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p><span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;1.00</span></p>
                            <a href="" class="addcart"><i></i></a>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView4.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <em class="r-selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p><span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;1.00</span></p>
                            <a href="" class="addcart"><i></i></a>
                        </div>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } else if(content.goodstyle==3){ %>
            <section class="members_goodspic">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods,index){ %>
                    <li class="b_mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="100%">
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="100%">
                                <% } %> 
                            </a>
                            <% if(content.showIco || content.showPrice){ %>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>"><%= goods.title %></p>
                            <% } %>

                            <p class="pic_box"><span class="yj">&yen;<%= goods.original_price%></span></p>
                            <% } %>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl">&yen;<%= goods.price%></span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                            <p class="goods-btn"><a href=""><%=content.goodstxt%></a></p>
                        </div>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl">&yen;1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                            <p class="goods-btn"><a href="">立即购买</a></p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl">&yen;1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                            <p class="goods-btn"><a href="">立即购买</a></p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl">&yen;1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                            <p class="goods-btn"><a href="">立即购买</a></p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView4.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl">&yen;1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                            <p class="goods-btn"><a href="">立即购买</a></p>
                        </div>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } else if(content.goodstyle==4){ %>
            <section class="members_goodspic">
                <ul class="goodstyle4">
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods,index){ %>
                    <li class="b_mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="100%">
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="100%">
                                <% } %> 
                            </a>
                            <% if(content.showIco || content.showPrice){ %>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>"><%= goods.title %></p>
                            <% } %>
                            <% } %>
                            <p><span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;<%= goods.price%></span></p>
                        </div>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p><span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;1.00</span></p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p><span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;1.00</span></p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>					
                            <p><span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;1.00</span></p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView4.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p><span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;1.00</span></p>

                        </div>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } else if(content.goodstyle==5){ %>
            <section class="members_goodspic">
                <ul class="goodstyle5">
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods,index){ %>
                    <li class="b_mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="100%">
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="100%">
                                <% } %>
                            </a>
                            <% if(content.showIco || content.showPrice){ %>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>"><%= goods.title %></p>
                            <% } %>
                            <% } %>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl"><i class="smallsize">&yen;</i><%= goods.price%></span>
                                <span class="yj">&yen;<%= goods.original_price%></span>
                                <em class="r-selled-num fr"><strong><%=content.discount%></strong>折</em>
                            </p>
                        </div>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl"><i class="smallsize">&yen;</i>1.00</span>
                                <span class="yj">&yen;1.0</span>
                                <em class="r-selled-num fr"><strong><%=content.discount%></strong>折</em>
                            </p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl"><i class="smallsize">&yen;</i>1.00</span>
                                <span class="yj">&yen;1.0</span>
                                <em class="r-selled-num fr"><strong><%=content.discount%></strong>折</em>
                            </p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl"><i class="smallsize">&yen;</i>1.00</span>
                                <span class="yj">&yen;1.0</span>
                                <em class="r-selled-num fr"><strong><%=content.discount%></strong>折</em>
                            </p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView4.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl"><i class="smallsize">&yen;</i>1.00</span>
                                <span class="yj">&yen;1.0</span>
                                <em class="r-selled-num fr"><strong><%=content.discount%></strong>折</em>
                            </p>
                        </div>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } %>
            <% } else if(content.layout==2){ %>
            <% if(content.layoutstyles==1){ %>
            <section class="members_goodspic" style="margin-top:<%=content.modulePadding%>px;margin-bottom:<%=content.modulePadding%>px;">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods){ %>
                    <li class="biggoods">
                        <a class="goodsimg" href="<%= goods.link %>">
                            <% if(goods.is_compress){ %>
                            <img src="<%= goods.pic %>300x300" width="100%" >
                            <% }else{ %>
                            <img src="<%= goods.pic %>" width="100%" >
                            <% } %>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="<%= goods.link %>" class="<% if(content.titleLine == 1){ %>multiLine<% } %>"><%= goods.title %></a>
                            <% } %>
                            <span>
                                <% if(content.showIco){ %>
                                <i><a href="<%= goods.link %>"></a></i>
                                <% } %>
                                <% if(content.showPrice){ %>
                                &yen;<%= goods.price%>      
                                <span class="original_price">原价：<s>&yen;<%= goods.original_price%></s></span>
                                <% } %>
                            </span>

                        </section>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="biggoods">
                        <a class="goodsimg" href=""><img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="" class="<% if(content.titleLine == 1){ %>multiLine<% } %>">大图商品名称</a>
                            <% } %>
                            <span><i></i>&yen;780.00<span class="original_price">原价：<s>&yen;999</s></span></span>

                        </section>
                    </li>
                    <li class="biggoods">
                        <a class="goodsimg" href=""><img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="" class="<% if(content.titleLine == 1){ %>multiLine<% } %>">大图商品名称</a>
                            <% } %>
                            <span><i></i>&yen;780.00<span class="original_price">原价：<s>&yen;999</s></span></span>
                        </section>
                    </li>
                    <li class="biggoods">
                        <a class="goodsimg" href=""><img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="" class="<% if(content.titleLine == 1){ %>multiLine<% } %>">大图商品名称</a>
                            <% } %>
                            <span><i></i>&yen;780.00<span class="original_price">原价：<s>&yen;999</s></span></span>
                        </section>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% }else if(content.layoutstyles==2){ %>
            <section class="members_goodspic layoutstyles2" style="margin-top:<%=content.modulePadding%>px;margin-bottom:<%=content.modulePadding%>px;">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods){ %>
                    <li class="lists_goods">
                        <a class="goodsimg fl" href="<%= goods.link %>">
                            <% if(goods.is_compress){ %>
                            <img src="<%= goods.pic %>300x300" width="100%" >
                            <% }else{ %>
                            <img src="<%= goods.pic %>" width="100%" >
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="<%= goods.link %>" class="multiLine"><%= goods.title %></a>
                            <% } %>
                            <span class="original_price"><s>&yen;<%= goods.original_price%></s></span>
                            <span>
                                <% if(content.showPrice){ %>
                                &yen;<%= goods.price%>
                                <% } %>
                            </span>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num fr">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </section>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="lists_goods">
                        <a class="goodsimg fl" href=""><img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="javascript:;" class="multiLine">列表商品名称，多行内容标题显示</a>
                            <% } %>
                            <span class="original_price"><s>&yen;999</s></span>

                            <span>&yen;780.00</span>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num fr">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>        
                        </section>
                    </li>
                    <li class="lists_goods">
                        <a class="goodsimg fl" href=""><img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="javascript:;" class="multiLine">列表商品名称，多行内容标题显示</a>
                            <% } %>
                            <span class="original_price">原价：<s>&yen;999</s></span>
                            <span>&yen;780.00</span>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num fr">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </section>
                    </li>
                    <li class="lists_goods">
                        <a class="goodsimg fl" href=""><img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="javascript:;" class="multiLine">列表商品名称，多行内容标题显示</a>
                            <% } %>
                            <span class="original_price">原价：<s>&yen;999</s></span>
                            <span>&yen;780.00</span>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num fr">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </section>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } %>
            <% } else if(content.layout==3) { %>
            <section class="m_sliderGoods J_sliderGoods">
                <ul class="clearfix">
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods,index){ %>
                    <li>
                        <section class="goods_items">
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="100%">
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="100%">
                                <% } %> 
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title"><%= goods.title %></p>
                            <% } %>
                            <p>
                            <s class="orign_price ">&yen;<%= goods.original_price%></s>
                            <em class="goods_pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;<%= goods.price%></em>
                            </p>
                        </section>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li>
                        <section class="goods_items">
                            <a href="">
                                <img src="/Public/images/diy/goodsView1.jpg" width="100%">
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title">商品标题</p>
                            <% } %>
                            <p>
                            <s class="orign_price ">¥128.00</s>
                            <em class="goods_pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">¥88.00</em>
                            </p>
                        </section>
                    </li>
                    <li>
                        <section class="goods_items">
                            <a href="">
                                <img src="/Public/images/diy/goodsView2.jpg" width="100%">
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title">商品标题</p>
                            <% } %>
                            <p>
                            <s class="orign_price">¥128.00</s>
                            <em class="goods_pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">¥88.00</em>
                            </p>
                        </section>
                    </li>
                    <li>
                        <section class="goods_items">
                            <a href="">
                                <img src="/Public/images/diy/goodsView3.jpg" width="100%">
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title">商品标题</p>
                            <% } %>
                            <p>
                            <s class="orign_price">¥281.00</s>
                            <em class="goods_pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">¥88.00</em>
                            </p>
                        </section>
                    </li>
                    <% } %>
                </ul>
            </section>			
            <% } %>
            <% }else{ %>
            <% if(content.layout==1){ %>
            <section class="members_goodspic">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods){ %>
                    <li class="mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="100%">
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="100%">
                                <% } %>
                            </a>
                            <% if(content.showIco || content.showPrice){ %>
                            <span class="replace">
                                <% if(content.showIco){ %>
                                <i></i>
                                <% } %>
                                <% if(content.showPrice){ %>
                                &yen;<%= goods.price%>
                                <span class="original_price"><s>&yen;<%= goods.original_price%></s></span>
                                <% } %>
                                <% if( content.sale_num > 0){ %>
                                <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                                <% } %>
                            </span>
                            <% } %>
                        </div>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href=""><img src="/Public/images/diy/goodsView1.jpg" width="100%" ></a>
                            <span class="replace"><i></i> &yen;78.00<span class="original_price"><s>&yen;99.00</s></span>
                                <% if( content.sale_num > 0){ %>
                                <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                                <% } %>
                            </span>
                        </div>
                    </li>
                    <li class="mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href=""><img src="/Public/images/diy/goodsView2.jpg" width="100%" ></a>
                            <span class="replace"><i></i> &yen;78.00<span class="original_price"><s>&yen;99.00</s></span>
                                <% if( content.sale_num > 0){ %>
                                <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                                <% } %>
                            </span>
                        </div>
                    </li>
                    <li class="mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href=""><img src="/Public/images/diy/goodsView3.jpg" width="100%" ></a>
                            <span class="replace"><i></i> &yen;78.00<span class="original_price"><s>&yen;99.00</s></span>
                                <% if( content.sale_num > 0){ %>
                                <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                                <% } %>
                            </span>
                        </div>
                    </li>
                    <li class="mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href=""><img src="/Public/images/diy/goodsView4.jpg" width="100%" ></a>
                            <span class="replace"><i></i> &yen;78.00<span class="original_price"><s>&yen;99.00</s></span>
                                <% if( content.sale_num > 0){ %>
                                <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                                <% } %>
                            </span>
                        </div>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } else if(content.layout==2){ %>
            <section class="members_goodspic">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods){ %>
                    <li class="biggoods">
                        <a class="goodsimg" href="<%= goods.link %>">
                            <% if(goods.is_compress){ %>
                            <img src="<%= goods.pic %>300x300" width="100%" >
                            <% }else{ %>
                            <img src="<%= goods.pic %>" width="100%" >
                            <% } %>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName){ %>
                            <a href="<%= goods.link %>"><%= goods.title %></a>
                            <% } %>
                            <span>
                                <% if(content.showIco){ %>
                                <i><a href="<%= goods.link %>"></a></i>
                                <% } %>
                                <% if(content.showPrice){ %>
                                &yen;<%= goods.price%>
                                <span class="original_price">原价：<s>&yen;<%= goods.original_price%></s></span>
                                <% } %>
                            </span>

                        </section>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="biggoods">
                        <a class="goodsimg" href=""><img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="">大图商品名称</a>
                            <% } %>
                            <span><i></i> 780.00<span class="original_price">原价：<s>&yen;999</s></span></span>

                        </section>
                    </li>
                    <li class="biggoods">
                        <a class="goodsimg" href=""><img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="">大图商品名称</a>
                            <% } %>
                            <span><i></i> 780.00<span class="original_price">原价：<s>&yen;999</s></span></span>
                        </section>
                    </li>
                    <li class="biggoods">
                        <a class="goodsimg" href=""><img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="">大图商品名称</a>
                            <% } %>
                            <span><i></i> 780.00<span class="original_price">原价：<s>&yen;999</s></span></span>
                        </section>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } else if(content.layout==3){ %>
            <section class="members_goodspic big_small">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods,index){ %>

                    <% if(index%3==0){ %>
                    <li class="biggoods">
                        <a class="goodsimg" href="<%= goods.link %>">
                            <% if(goods.is_compress){ %>
                            <img src="<%= goods.pic %>300x300" width="100%" >
                            <% }else{ %>
                            <img src="<%= goods.pic %>" width="100%" >
                            <% } %>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <% if(content.showName || content.showPrice){ %>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName){ %>
                            <a href="<%= goods.link %>"><%= goods.title %></a>
                            <% } %>
                            <span>
                                <% if(content.showIco){ %>
                                <i><a href="<%= goods.link %>"></a></i>
                                <% } %>
                                <% if(content.showPrice){ %>
                                &yen;<%= goods.price%>
                                <span class="original_price">原价：<s>&yen;<%= goods.original_price%></s></span>
                                <% } %>
                            </span>
                        </section>
                        <% } %>
                    </li>
                    <% } else { %>
                    <li class="b_mingoods <% if(index%3==1){ %>goods_odd<% } %><% if(index%3==2){ %>goods_even<% } %>">
                        <div class="b_mingoods_wrapper">
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="100%">
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="100%">
                                <% } %>
                                <% if( content.sale_num > 0){ %>
                                <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                                <% } %>
                            </a>
                            <section style="height:44px;">
                                <p class="title"><%= goods.title %></p>
                                <p class="pic_box"><span class="pirce"><span class="yen">&yen;</span><%= goods.price%></span><span class="yj">&yen;<%= goods.original_price%></span></p>
                            </section>

                        </div>
                    </li>
                    <% } %>

                    <% }) %>
                    <% } else { %>
                    <li class="biggoods">
                        <a class="goodsimg" href=""><img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <a href="">大图商品名称</a>
                            <span><i></i> 780.00<span class="original_price">原价：<s>&yen;999</s></span></span>

                        </section>
                    </li>
                    <li class="mingoods goods_odd">
                        <a href=""><img src="/Public/images/diy/goodsView4.jpg" width="100%" ></a>
                        <span class="replace"><i></i> &yen;78.00<span class="original_price"><s>&yen;99.00</s></span>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </span>
                    </li>
                    <li class="mingoods goods_even">
                        <a href=""><img src="/Public/images/diy/goodsView4.jpg" width="100%" ></a>
                        <span class="replace"><i></i> &yen;78.00<span class="original_price"><s>&yen;99.00</s></span>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </span>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } else if(content.layout==4){ %>
            <section class="members_goodslist">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods){ %>
                    <li class="g-box por rebox">
                        <section>
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="88" height="88" >
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="88" height="88" >
                                <% } %>
                            </a>
                        </section>
                        <section class="g-flex">
                            <a href=""><%= goods.title %></a>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                            <p>&yen;<%= goods.price %></p>
                        </section>
                        <i class="icon_buy"><a href="<%= goods.link %>" title="">购买</a></i>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="g-box por rebox">
                        <section><a href=""><img src="/Public/images/diy/goodsView1.jpg" width="88" height="88" ></a></section>
                        <section class="g-flex">
                            <a href="">此处显示商品名称</a>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                            <p>&yen;32434.00</p>
                        </section>
                        <i class="icon_buy"><a href="#" title="">购买</a></i>
                    </li>
                    <li class="g-box por rebox">
                        <section><a href=""><img src="/Public/images/diy/goodsView2.jpg" width="88" height="88" ></a></section>
                        <section class="g-flex">
                            <a href="">此处显示商品名称</a>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                            <p>&yen;32434.00</p>
                        </section>
                        <i class="icon_buy"><a href="#" title="">购买</a></i>
                    </li>
                    <li class="g-box por rebox">
                        <section><a href=""><img src="/Public/images/diy/goodsView3.jpg" width="88" height="88" ></a></section>
                        <section class="g-flex">
                            <a href="">此处显示商品名称</a>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                            <p>&yen;32434.00</p>
                        </section>
                        <i class="icon_buy"><a href="#" title="">购买</a></i>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } else if(content.layout==5){ %>
            <section class="members_goodspic">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods,index){ %>
                    <li class="b_mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="100%">
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="100%">
                                <% } %>
                                <% if( content.sale_num > 0){ %>
                                <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                                <% } %>  
                            </a>
                            <% if(content.showIco || content.showPrice){ %>
                            <p class="title"><%= goods.title %></p>
                            <p class="pic_box"><span class="pirce">&yen;<%= goods.price%></span><span class="yj">&yen;<%= goods.original_price%></span></p>
                            <% } %>

                        </div>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                                <% if( content.sale_num > 0){ %>
                                <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                                <% } %>
                            </a>
                            <p class="title">商品标题</p>
                            <p class="pic_box"><span class="pirce">&yen;1.00</span><span class="yj">&yen;1.0</span></p>

                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                                <% if( content.sale_num > 0){ %>
                                <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                                <% } %>
                            </a>
                            <p class="title">商品标题</p>
                            <p class="pic_box"><span class="pirce">&yen;1.00</span><span class="yj">&yen;1.0</span></p>

                        </div>
                    </li>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                                <% if( content.sale_num > 0){ %>
                                <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                                <% } %>
                            </a>
                            <p class="title">商品标题</p>
                            <p class="pic_box"><span class="pirce">&yen;1.00</span><span class="yj">&yen;1.0</span></p>

                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView4.jpg" width="100%" >
                                <% if( content.sale_num > 0){ %>
                                <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                                <% } %>
                            </a>
                            <p class="title">商品标题</p>
                            <p class="pic_box"><span class="pirce">&yen;1.00</span><span class="yj">&yen;1.0</span></p>

                        </div>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } %>
            <% } %>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type4">
    <%var ids=[];%>
    <% if(content.version == 1){ %>
    <div class="formitems">
        <label class="fi-name">布局方式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="layout" value="1" <% if(content.layout==1){ %>checked<% } %> >双列商品</label>
                <label><input type="radio" name="layout" value="2" <% if(content.layout==2){ %>checked<% } %> >单列商品</label>
                <label><input type="radio" name="layout" value="3" <% if(content.layout==3){ %>checked<% } %> >滑动商品</label>
            </div>
        </div>
    </div>
    <% if(content.layout==1){ %>
    <div class="formitems">
        <label class="fi-name">样式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="goodstyle" value="1" <% if(content.goodstyle==1){ %>checked<% } %> >样式一</label>
                <label><input type="radio" name="goodstyle" value="2" <% if(content.goodstyle==2){ %>checked<% } %> >样式二</label>
                <label><input type="radio" name="goodstyle" value="3" <% if(content.goodstyle==3){ %>checked<% } %> >样式三</label>
                <label><input type="radio" name="goodstyle" value="4" <% if(content.goodstyle==4){ %>checked<% } %> >样式四</label>
                <label><input type="radio" name="goodstyle" value="5" <% if(content.goodstyle==5){ %>checked<% } %> >样式五</label>
            </div>
        </div>
    </div>
    <% if(content.goodstyle==3){ %>
    <div class="formitems">
        <label class="fi-name">按钮文本：</label>  
        <div class="form-controls">  
            <input type="text" name="goodstxt" class="input" value="<%= content.goodstxt %>">
            <span class="fi-help-text"></span>
        </div>
    </div>
    <% } %>
    <% } %>

    <% if(content.layout==2){ %>
    <div class="formitems">
        <label class="fi-name">样式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="layoutstyles" value="1" <% if(content.layoutstyles==1){ %>checked<% } %> >样式一</label>
                <label><input type="radio" name="layoutstyles" value="2" <% if(content.layoutstyles==2){ %>checked<% } %> >样式二</label>
            </div>
        </div>
    </div>
    <% } %>	

    <div class="formitems">
        <label class="fi-name">是否显示标题：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="showName" value='1' <% if(content.showName == 1||content.showName===true){ %>checked<% } %> >显示</label>
                <label><input type="radio" name="showName" value='0' <% if(content.showName == 0||content.showName===false){ %>checked<% } %> >不显示</label>
                <% if(content.layout != 3){ %>
                <label <% if(content.layoutstyles==2){ %>style="display:none" <% }%>><input type="checkbox" name="multiLine" <% if(content.titleLine == 1 ||content.titleLine===true){ %>checked<% } %> >多行显示
                </label>
                <% } %>
            </div>
        </div>
    </div>

    <% if(content.layout==1){ %>
    <div class="formitems">
        <label class="fi-name">价格是否加粗：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="priceBold" value='1' <% if(content.priceBold == 1 || typeof content.priceBold=="undefined"){ %>checked<% } %> >加粗</label>
                <label><input type="radio" name="priceBold" value='0' <% if(content.priceBold == 0){ %>checked<% } %> >不加粗</label>
            </div>
        </div>
    </div>
    <%}%>

    <div class="formitems">
        <label class="fi-name">选择商品：</label> 
        <div class="form-controls pdt5">
            <ul class="img-list clearfix">
                <% if (content.goodslist){ %>
                <% _.each(content.goodslist,function(goods){ %>
                <li data-item="<%= goods.item_id %>">
                    <a href="<%= goods.link %>" target="_blank">
                        <span class="img-move img-move-left"></span>
                        <span class="img-move img-move-right"></span>
                        <span class="img-list-btndel j-delgoods"><i class="gicon-trash white"></i></span>
                        <span class="img-list-overlay"></span>
                        <% if(goods.is_compress){ %>
                        <img src="<%= goods.pic %>80x80">
                        <% }else{ %>
                        <img src="<%= goods.pic %>">
                        <% } %>
                    </a>
                </li>
                <%ids.push(goods.item_id)%>
                <% }) %>
                <% } %>
                <li class="img-list-add j-addgoods">+</li>
            </ul>
            <input type="hidden" value="" class="j-verify"><span class="fi-help-text"></span>
        </div>
    </div>
    <% }else{ %>
    <div class="formitems">
        <label class="fi-name">布局方式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="layout" value="1" <% if(content.layout==1){ %>checked<% } %> >小图</label>
                <label><input type="radio" name="layout" value="2" <% if(content.layout==2){ %>checked<% } %> >大图</label>
                <label><input type="radio" name="layout" value="3" <% if(content.layout==3){ %>checked<% } %> >一大两小</label>
                <label><input type="radio" name="layout" value="4" <% if(content.layout==4){ %>checked<% } %> >列表</label>
                <label><input type="radio" name="layout" value="5" <% if(content.layout==5){ %>checked<% } %> >双列有标题</label>
            </div>
        </div>
    </div>
    <% if(content.layout==2){ %>
    <div class="formitems">
        <label class="fi-name">是否显示标题：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="showName" value='1' <% if(content.showName == 1||content.showName===true){ %>checked<% } %> >显示</label>
                <label><input type="radio" name="showName" value='0' <% if(content.showName == 0||content.showName===false){ %>checked<% } %> >不显示</label>
            </div>
        </div>
    </div>
    <% } %>
    <div class="formitems">
        <label class="fi-name">选择商品：</label> 
        <div class="form-controls pdt5">
            <ul class="img-list clearfix">
                <% if (content.goodslist){ %>
                <% _.each(content.goodslist,function(goods){ %>
                <li data-item="<%= goods.item_id %>">
                    <a href="<%= goods.link %>" target="_blank">
                        <span class="img-move img-move-left"></span>
                        <span class="img-move img-move-right"></span>
                        <span class="img-list-btndel j-delgoods"><i class="gicon-trash white"></i></span>
                        <span class="img-list-overlay"></span>
                        <% if(goods.is_compress){ %>
                        <img src="<%= goods.pic %>80x80">
                        <% }else{ %>
                        <img src="<%= goods.pic %>">
                        <% } %>
                    </a>
                </li>
                <%ids.push(goods.item_id)%>
                <% }) %>
                <% } %>
                <li class="img-list-add j-addgoods">+</li>
            </ul>
            <input type="hidden" value="" class="j-verify"><span class="fi-help-text"></span>
        </div>
    </div>
    <% } %>
    <input type="hidden" name="goods_ids" value="<%=ids.join(',')%>">
    <div class="formitems">
        <label class="fi-name">模块上下边距：</label>
        <div class="form-controls">
            <div class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%=content.modulePadding%>px</span>
        </div>
    </div>
</script>
<!-- type4 goods end-->

<!-- type5 group start-->
<script type="text/j-template" id="tpl_diy_con_type5">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">
            <% if(content.version == 1){ %>
            <% if(content.layout==1){ %>
            <% if(content.goodstyle==1){ %>
            <section class="members_goodspic">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods,index){ %>
                    <li class="b_mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="100%">
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="100%">
                                <% } %> 
                            </a>
                            <% if(content.showIco || content.showPrice){ %>
                            <p class="goods-title"><%= goods.title %></p>
                            <p class="pic_box"><span class="yj">&yen;<%= goods.original_price%></span></p>
                            <% } %>
                            <p>
                                <span class="goods-pirce fl"><i class="smallsize">&yen;</i><%= goods.price%></span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                        </div>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                            </a>
                            <p class="goods-title">商品标题</p>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce fl"><i class="smallsize">&yen;</i>1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                            </a>
                            <p class="goods-title">商品标题</p>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce fl"><i class="smallsize">&yen;</i>1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                            </a>
                            <p class="goods-title">商品标题</p>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce fl"><i class="smallsize">&yen;</i>1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView4.jpg" width="100%" >
                            </a>
                            <p class="goods-title">商品标题</p>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce fl"><i class="smallsize">&yen;</i>1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                        </div>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } else if(content.goodstyle==2){ %>
            <section class="members_goodspic">
                <ul class="goodstyle2">
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods,index){ %>
                    <li class="b_mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="100%">
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="100%">
                                <% } %> 
                            </a>
                            <% if(content.showIco || content.showPrice){ %>
                            <p class="goods-title"><%= goods.title %></p>
                            <em class="r-selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <p class="pic_box"><span class="yj">&yen;<%= goods.original_price%></span></p>
                            <% } %>
                            <p><span class="goods-pirce">&yen;<%= goods.price%></span></p>
                            <a href="" class="addcart"><i></i></a>
                        </div>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                            </a>
                            <p class="goods-title">商品标题</p>
                            <em class="r-selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p><span class="goods-pirce">&yen;1.00</span></p>
                            <a href="" class="addcart"><i></i></a>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                            </a>
                            <p class="goods-title">商品标题</p>
                            <em class="r-selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p><span class="goods-pirce">&yen;1.00</span></p>
                            <a href="" class="addcart"><i></i></a>
                        </div>
                    </li>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                            </a>
                            <p class="goods-title">商品标题</p>
                            <em class="r-selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p><span class="goods-pirce">&yen;1.00</span></p>
                            <a href="" class="addcart"><i></i></a>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView4.jpg" width="100%" >
                            </a>
                            <p class="goods-title">商品标题</p>
                            <em class="r-selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p><span class="goods-pirce">&yen;1.00</span></p>
                            <a href="" class="addcart"><i></i></a>
                        </div>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } else if(content.goodstyle==3){ %>
            <section class="members_goodspic">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods,index){ %>
                    <li class="b_mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="100%">
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="100%">
                                <% } %> 
                            </a>
                            <% if(content.showIco || content.showPrice){ %>
                            <p class="goods-title"><%= goods.title %></p>
                            <p class="pic_box"><span class="yj">&yen;<%= goods.original_price%></span></p>
                            <% } %>
                            <p>
                                <span class="goods-pirce fl">&yen;<%= goods.price%></span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                            <p class="goods-btn"><a href=""><%=content.goodstxt%></a></p>
                        </div>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                            </a>
                            <p class="goods-title">商品标题</p>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce fl">&yen;1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                            <p class="goods-btn"><a href="">立即购买</a></p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                            </a>
                            <p class="goods-title">商品标题</p>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce fl">&yen;1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                            <p class="goods-btn"><a href="">立即购买</a></p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                            </a>
                            <p class="goods-title">商品标题</p>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce fl">&yen;1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                            <p class="goods-btn"><a href="">立即购买</a></p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView4.jpg" width="100%" >
                            </a>
                            <p class="goods-title">商品标题</p>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce fl">&yen;1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                            <p class="goods-btn"><a href="">立即购买</a></p>
                        </div>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } %>
            <% } else if(content.layout==2){ %>
            <% if(content.layoutstyles==1){ %>
            <section class="members_goodspic" style="margin-top:<%=content.modulePadding%>px;margin-bottom:<%=content.modulePadding%>px;">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods){ %>
                    <li class="biggoods">
                        <a class="goodsimg" href="<%= goods.link %>">
                            <% if(goods.is_compress){ %>
                            <img src="<%= goods.pic %>300x300" width="100%" >
                            <% }else{ %>
                            <img src="<%= goods.pic %>" width="100%" >
                            <% } %>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="<%= goods.link %>" class="<% if(content.titleLine == 1){ %>multiLine<% } %>"><%= goods.title %></a>
                            <% } %>
                            <span>
                                <% if(content.showIco){ %>
                                <i><a href="<%= goods.link %>"></a></i>
                                <% } %>
                                <% if(content.showPrice){ %>
                                &yen;<%= goods.price%>
                                <span class="original_price">原价：<s>&yen;<%= goods.original_price%></s></span>
                                <% } %>
                            </span>

                        </section>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="biggoods">
                        <a class="goodsimg" href=""><img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="" class="<% if(content.titleLine == 1){ %>multiLine<% } %>">大图商品名称</a>
                            <% } %>
                            <span><i></i>&yen;780.00<span class="original_price">原价：<s>&yen;999</s></span></span>

                        </section>
                    </li>
                    <li class="biggoods">
                        <a class="goodsimg" href=""><img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="" class="<% if(content.titleLine == 1){ %>multiLine<% } %>">大图商品名称</a>
                            <% } %>
                            <span><i></i>&yen;780.00<span class="original_price">原价：<s>&yen;999</s></span></span>
                        </section>
                    </li>
                    <li class="biggoods">
                        <a class="goodsimg" href=""><img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="" class="<% if(content.titleLine == 1){ %>multiLine<% } %>">大图商品名称</a>
                            <% } %>
                            <span><i></i>&yen;780.00<span class="original_price">原价：<s>&yen;999</s></span></span>
                        </section>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% }else if(content.layoutstyles==2){ %>
            <section class="members_goodspic layoutstyles2" style="margin-top:<%=content.modulePadding%>px;margin-bottom:<%=content.modulePadding%>px;">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods){ %>
                    <li class="lists_goods">
                        <a class="goodsimg fl" href="<%= goods.link %>">
                            <% if(goods.is_compress){ %>
                            <img src="<%= goods.pic %>300x300" width="100%" >
                            <% }else{ %>
                            <img src="<%= goods.pic %>" width="100%" >
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="<%= goods.link %>" class="multiLine"><%= goods.title %></a>
                            <% } %>
                            <span class="original_price"><s>&yen;<%= goods.original_price%></s></span>
                            <span>
                                <% if(content.showPrice){ %>
                                &yen;<%= goods.price%>
                                <% } %>
                            </span>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num fr">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </section>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="lists_goods">
                        <a class="goodsimg fl" href=""><img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="javascript:;" class="multiLine">列表商品名称，多行内容标题显示</a>
                            <% } %>
                            <span class="original_price"><s>&yen;999</s></span>

                            <span>&yen;780.00</span>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num fr">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>        
                        </section>
                    </li>
                    <li class="lists_goods">
                        <a class="goodsimg fl" href=""><img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="javascript:;" class="multiLine">列表商品名称，多行内容标题显示</a>
                            <% } %>
                            <span class="original_price">原价：<s>&yen;999</s></span>
                            <span>&yen;780.00</span>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num fr">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </section>
                    </li>
                    <li class="lists_goods">
                        <a class="goodsimg fl" href=""><img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="javascript:;" class="multiLine">列表商品名称，多行内容标题显示</a>
                            <% } %>
                            <span class="original_price">原价：<s>&yen;999</s></span>
                            <span>&yen;780.00</span>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num fr">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </section>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } %>
            <% } else if(content.layout==3){ %>
            <section class="m_sliderGoods J_sliderGoods">
                <ul class="clearfix">
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods,index){ %>
                    <li>
                        <section class="goods_items">
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="100%">
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="100%">
                                <% } %> 
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title"><%= goods.title %></p>
                            <% } %>
                            <p>
                            <s class="orign_price ">&yen;<%= goods.original_price%></s>
                            <em class="goods_pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;<%= goods.price%></em>
                            </p>
                        </section>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li>
                        <section class="goods_items">
                            <a href="">
                                <img src="/Public/images/diy/goodsView1.jpg" width="100%">
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title">商品标题</p>
                            <% } %>
                            <p>
                            <s class="orign_price ">¥128.00</s>
                            <em class="goods_pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">¥88.00</em>
                            </p>
                        </section>
                    </li>
                    <li>
                        <section class="goods_items">
                            <a href="">
                                <img src="/Public/images/diy/goodsView2.jpg" width="100%">
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title">商品标题</p>
                            <% } %>
                            <p>
                            <s class="orign_price">¥128.00</s>
                            <em class="goods_pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">¥88.00</em>
                            </p>
                        </section>
                    </li>
                    <li>
                        <section class="goods_items">
                            <a href="">
                                <img src="/Public/images/diy/goodsView3.jpg" width="100%">
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title">商品标题</p>
                            <% } %>
                            <p>
                            <s class="orign_price">¥281.00</s>
                            <em class="goods_pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">¥88.00</em>
                            </p>
                        </section>
                    </li>
                    <% } %>
                </ul>
            </section>	
            <% } %>
            <% }else{ %>
            <% if(content.layout==1){ %>
            <section class="members_goodspic">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods){ %>
                    <li class="mingoods">
                        <a href="<%= goods.link %>"><img src="<%= goods.pic %>" width="100%"></a>
                        <% if(content.showIco || content.showPrice){ %>
                        <span class="replace">
                            <% if(content.showIco){ %>
                            <i></i>
                            <% } %>
                            <% if(content.showPrice){ %>
                            &yen;<%= goods.price%>
                            <span class="original_price"><s>&yen;<%= goods.original_price%></s></span>
                            <% } %>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </span>
                        <% } %>

                    </li>
                    <% }) %>
                    <% } %>
                </ul>
            </section>
            <% } else if(content.layout==2){ %>
            <section class="members_goodspic">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods){ %>
                    <li class="biggoods">
                        <a class="goodsimg" href="<%= goods.link %>"><img src="<%= goods.pic %>" width="100%" >
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <% if(content.showName || content.showPrice){ %>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName){ %>
                            <a href="<%= goods.link %>"><%= goods.title %></a>
                            <% } %>
                            <span>
                                <% if(content.showIco){ %>
                                <i><a href="<%= goods.link %>"></a></i>
                                <% } %>
                                <% if(content.showPrice){ %>
                                &yen;<%= goods.price%>
                                <span class="original_price">原价：<s>&yen;<%= goods.original_price%></s></span>
                                <% } %>
                            </span>

                        </section>
                        <% } %>
                    </li>
                    <% }) %>
                    <% } %>
                </ul>
            </section>
            <% } else if(content.layout==3){ %>
            <section class="members_goodspic">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods,index){ %>

                    <% if(index%3==0){ %>
                    <li class="biggoods">
                        <a class="goodsimg" href="<%= goods.link %>">
                            <img src="<%= goods.pic %>" width="100%" >
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <% if(content.showName || content.showPrice){ %>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName){ %>
                            <a href="<%= goods.link %>"><%= goods.title %></a>
                            <% } %>
                            <span>
                                <% if(content.showIco){ %>
                                <i><a href="<%= goods.link %>"></a></i>
                                <% } %>
                                <% if(content.showPrice){ %>
                                &yen;<%= goods.price%>
                                <span class="original_price"><s>&yen;<%= goods.original_price%></s></span>
                                <% } %>
                            </span>
                        </section>
                        <% } %>
                    </li>
                    <% } else { %>
                    <li class="mingoods <% if(index%3==2){ %>goods_even<% }%><% if(index%3==1){ %>goods_odd<% } %>">
                        <a href="<%= goods.link %>"><img src="<%= goods.pic %>" width="100%"></a>
                        <% if(content.showIco || content.showPrice){ %>
                        <span class="replace">
                            <% if(content.showIco){ %>
                            <i></i>
                            <% } %>
                            <% if(content.showPrice){ %>
                            &yen;<%= goods.price%>
                            <span class="original_price"><s>&yen;<%= goods.original_price%></s></span>
                            <% } %>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num %></strong></em>
                            <% } %>
                        </span>
                        <% } %>
                    </li>
                    <% } %>

                    <% }) %>
                    <% } %>
                </ul>
            </section>
            <% } else if(content.layout==4){ %>
            <section class="members_goodslist">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods){ %>
                    <li class="g-box por rebox">
                        <section><a href="<%= goods.link %>"><img src="<%= goods.pic %>" width="88" height="88" ></a></section>
                        <section class="g-flex">
                            <a href=""><%= goods.title %></a>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                            <p>&yen;<%= goods.price %></p>
                        </section>
                        <i class="icon_buy"><a href="<%= goods.link %>" title="">购买</a></i>
                    </li>
                    <% }) %>
                    <% } %>
                </ul>
            </section>
            <% } %>
            <% } %>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type5">
    <% if(content.version == 1){ %>
    <div class="formitems">
        <label class="fi-name">布局方式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="layout" value="1" <% if(content.layout==1){ %>checked<% } %> >双列商品</label>
                <label><input type="radio" name="layout" value="2" <% if(content.layout==2){ %>checked<% } %> >单列商品</label>
                <label><input type="radio" name="layout" value="3" <% if(content.layout==3){ %>checked<% } %> >滑动商品</label>
            </div>
        </div>
    </div>
    <% if(content.layout==1){ %>
    <div class="formitems">
        <label class="fi-name">样式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="goodstyle" value="1" <% if(content.goodstyle==1){ %>checked<% } %> >样式一</label>
                <label><input type="radio" name="goodstyle" value="2" <% if(content.goodstyle==2){ %>checked<% } %> >样式二</label>
                <label><input type="radio" name="goodstyle" value="3" <% if(content.goodstyle==3){ %>checked<% } %> >样式三</label>
            </div>
        </div>
    </div>
    <% if(content.goodstyle==3){ %>
    <div class="formitems">
        <label class="fi-name">按钮文本：</label>  
        <div class="form-controls">  
            <input type="text" name="goodstxt" class="input" value="<%= content.goodstxt %>">
            <span class="fi-help-text"></span>
        </div>
    </div>
    <% } %>
    <% } %>

    <% if(content.layout==2){ %>
    <div class="formitems">
        <label class="fi-name">样式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="layoutstyles" value="1" <% if(content.layoutstyles==1){ %>checked<% } %> >样式一</label>
                <label><input type="radio" name="layoutstyles" value="2" <% if(content.layoutstyles==2){ %>checked<% } %> >样式二</label>
            </div>
        </div>
    </div>
    <% } %>	
    <!--
    <div class="formitems j-showplg" style="display:none;">
            <label class="fi-name">显示组件：</label> 
            <div class="form-controls">
                    <div class="checkbox-group" style="display:none;">
                            <label><input type="checkbox" name="showName" <% if(content.showName && content.layout!=1){ %>checked<% } %> <% if(content.layout==1){ %>disabled<% } %> >显示商品名</label>
                            <span>(布局方式为小图的时候不会显示)</span>
                    </div>
                    <div class="checkbox-group">
                            <label><input type="checkbox" name="showIco" <% if(content.showIco){ %>checked<% } %> >显示购物车图标</label>
                            <label><input type="checkbox" name="showPrice" <% if(content.showPrice){ %>checked<% } %> >显示价格</label>
                    </div>
            </div>
    </div>
    -->
    <div class="formitems">  
        <label class="fi-name">选择商品分组：</label>
        <div class="form-controls pdt3">
            <% if(content.group){ %>
            <a href="<%= content.group.link %>" data-group="<%= content.group.group_id %>" target="_blank" class="badge badge-success mgt3"><%= content.group.title %></a>
            <a href="javascript:;" class="btn btn-primary btn-mini j-btn-modify">修改分组</a>
            <% } else { %>
            <a href="javascript:;" class="btn btn-primary btn-mini j-btn-add mgt3">选择分组</a>
            <% }%>
            <input type="hidden" class="j-verify">
            <span class="fi-help-text">选择商品分组后，左侧实时预览暂不支持显示其包含的商品数据</span>
        </div>
    </div>
    <div class="formitems">
        <label class="fi-name">显示商品个数：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="goodsize" value="6" <% if(content.goodsize==6){ %>checked<% } %> >6个</label>
                <label><input type="radio" name="goodsize" value="12" <% if(content.goodsize==12){ %>checked<% } %> >12个</label>
                <label><input type="radio" name="goodsize" value="18" <% if(content.goodsize==18){ %>checked<% } %> >18个</label>
            </div>
            <span class="fi-help-text"></span>
        </div>
    </div>
    <% }else{ %>
    <div class="formitems">
        <label class="fi-name">布局方式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="layout" value="1" <% if(content.layout==1){ %>checked<% } %> >小图</label>
                <label><input type="radio" name="layout" value="2" <% if(content.layout==2){ %>checked<% } %> >大图</label>
                <label><input type="radio" name="layout" value="3" <% if(content.layout==3){ %>checked<% } %> >一大两小</label>
                <label><input type="radio" name="layout" value="4" <% if(content.layout==4){ %>checked<% } %> >列表</label>
            </div>
        </div>
    </div>
    <!--
    <div class="formitems j-showplg" style="display:none;">
            <label class="fi-name">显示组件：</label> 
            <div class="form-controls">
                    <div class="checkbox-group" style="display:none;">
                            <label><input type="checkbox" name="showName" <% if(content.showName && content.layout!=1){ %>checked<% } %> <% if(content.layout==1){ %>disabled<% } %> >显示商品名</label>
                            <span>(布局方式为小图的时候不会显示)</span>
                    </div>
                    <div class="checkbox-group">
                            <label><input type="checkbox" name="showIco" <% if(content.showIco){ %>checked<% } %> >显示购物车图标</label>
                            <label><input type="checkbox" name="showPrice" <% if(content.showPrice){ %>checked<% } %> >显示价格</label>
                    </div>
            </div>
    </div>
    -->
    <div class="formitems">  
        <label class="fi-name">选择商品分组：</label>
        <div class="form-controls pdt3">
            <% if(content.group){ %>
            <a href="<%= content.group.link %>" data-group="<%= content.group.group_id %>" target="_blank" class="badge badge-success mgt3"><%= content.group.title %></a>
            <a href="javascript:;" class="btn btn-primary btn-mini j-btn-modify">修改分组</a>
            <% } else { %>
            <a href="javascript:;" class="btn btn-primary btn-mini j-btn-add mgt3">选择分组</a>
            <% }%>
            <input type="hidden" class="j-verify">
            <span class="fi-help-text">选择商品分组后，左侧实时预览暂不支持显示其包含的商品数据</span>
        </div>
    </div>
    <div class="formitems">
        <label class="fi-name">显示商品个数：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="goodsize" value="6" <% if(content.goodsize==6){ %>checked<% } %> >6个</label>
                <label><input type="radio" name="goodsize" value="12" <% if(content.goodsize==12){ %>checked<% } %> >12个</label>
                <label><input type="radio" name="goodsize" value="18" <% if(content.goodsize==18){ %>checked<% } %> >18个</label>
            </div>
            <span class="fi-help-text"></span>
        </div>
    </div>
    <% } %>
    <div class="formitems">
        <label class="fi-name">模块上下边距：</label>
        <div class="form-controls">
            <div class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%=content.modulePadding%>px</span>
        </div>
    </div>
</script>
<!-- type5 group end-->

<!-- type6 goodSearch start-->
<script type="text/j-template" id="tpl_diy_con_type6">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">
            <section class="members_search">
                <input type="text" placeholder="商品搜索：请输入商品关键字"  >
                <button type="submit"></button>
            </section>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type6">
    <!--<div class="formitems pdt5"><p>可随意插入任何页面和位置，方便会员快速搜索商品。</p></div>-->

    <div class="formitems">
        <label class="fi-name">模块上下边距：</label>
        <div class="form-controls">
            <div class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%=content.modulePadding%>px</span>
        </div>
    </div>
</script>
<!-- type6 goodSearch end-->

<!-- type7 txtNav start-->
<script type="text/j-template" id="tpl_diy_con_type7">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">
            <section class="members_nav2">
                <ul>
                    <% if(content.dataset.length){ %>
                    <% _.each(content.dataset,function(item){ %>
                    <% if(item.linkType){ %>
                    <li><a href="<%= item.link %>"><%= item.showtitle %></a><b></b></li>
                    <%}else{%>
                    <li><a href="#">请添加导航链接</a><b></b></li>
                    <%}%>
                    <% }) %>
                    <% }else{ %>
                    <li><a href="#">请添加导航链接</a><b></b></li>
                    <% } %>
                </ul>
            </section>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type7">
    <ul class="ctrl-item-list">
        <% _.each(content.dataset,function(item){ %>
        <li class="ctrl-item-list-li">
            <div class="formitems">  
                <label class="fi-name">链接到：</label>  
                <div class="form-controls">
                    <% if(item.linkType && item.linkType!=11){ %>
                    <a href="<%= item.link %>" target="_blank" class="badge badge-success" title="<%= item.title %>">
                        <span><%= HYD.linkType[item.linkType] %></span>
                        <em class="badge-link ovfEps"><%= item.title %></em>
                    </a>
                    <%}%>

                    <% if(item.linkType==11){ %>
                    <input type="text" name="customlink" class="input" value="<%= item.link %>">
                    <% } %>

                    <div class="droplist">
                        <a href="javascript:;" class="droplist-title j-droplist-toggle">
                            <% if(item.linkType==0){ %>
                            <span>请选择</span>
                            <%}else{%>
                            <span>修改</span>
                            <%}%>
                            <i class="gicon-chevron-down mgl5"></i>
                        </a>
                        <ul class="droplist-menu">
                            <li data-val="1"><a href="javascript:;"><%= HYD.linkType[1] %></a></li>
                            <li data-val="2"><a href="javascript:;"><%= HYD.linkType[2] %></a></li>
                            <li data-val="3"><a href="javascript:;"><%= HYD.linkType[3] %></a></li>
                            <li data-val="4"><a href="javascript:;"><%= HYD.linkType[4] %></a></li>
                            <li data-val="5"><a href="javascript:;"><%= HYD.linkType[5] %></a></li>
                            <li data-val="6"><a href="javascript:;"><%= HYD.linkType[6] %></a></li>
                            <li data-val="7"><a href="javascript:;"><%= HYD.linkType[7] %></a></li>
                            <li data-val="8"><a href="javascript:;"><%= HYD.linkType[8] %></a></li>
                            <li data-val="10"><a href="javascript:;"><%= HYD.linkType[10] %></a></li>
                            <li data-val="9"><a href="javascript:;"><%= HYD.linkType[9] %></a></li>
                            <li data-val="12"><a href="javascript:;"><%= HYD.linkType[12] %></a></li>
                            <li data-val="11"><a href="javascript:;"><%= HYD.linkType[11] %></a></li>
                            <li data-val="13"><a href="javascript:;"><%= HYD.linkType[13] %></a></li>
                        </ul>
                    </div>
                    <input type="hidden" class="j-verify" name="item_id" value="">
                    <span class="fi-help-text j-verify-linkType"></span>
                </div>
            </div>
            <div class="formitems">  
                <label class="fi-name">导航名称：</label>
                <div class="form-controls">
                    <input type="text" name="title" class="input xlarge" value="<%= item.showtitle %>">
                    <span class="fi-help-text"></span>
                </div>
            </div>
            <div class="ctrl-item-list-actions">
                <a href="javascript:;" title="上移" class="j-moveup"><i class="gicon-arrow-up"></i></a>
                <a href="javascript:;" title="下移" class="j-movedown"><i class="gicon-arrow-down"></i></a>
                <a href="javascript:;" title="删除" class="j-del"><i class="gicon-remove"></i></a>
            </div>
        </li>
        <% }) %>
        <li class="ctrl-item-list-add" title="添加">+</li>
    </ul>
    <span class="fi-help-text mgt15 j-verify-least"></span>

    <div class="formitems">
        <label class="fi-name">模块上下边距：</label>
        <div class="form-controls">
            <div class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%=content.modulePadding%>px</span>
        </div>
    </div>
</script>
<!-- type7 txtNav end-->

<!-- type8 imgNav start--><!-- 科 -->
<script type="text/j-template" id="tpl_diy_con_type8">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">
            <%if(content.layout==1){%>
            <%if(content.layout1_style==1 || typeof content.layout1_style=="undefined"){%>
            <section class="diy-imgNav col<%= content.dataset.length %> clearfix">
                <% if(content.dataset.length){ %>
                <% _.each(content.dataset,function(item,index){ %>
                <%if(index==4) return false;%>
                <%
                var titleBackgroundColor="#FE9303";

                if(item.titleBackgroundColor){
                titleBackgroundColor=item.titleBackgroundColor;
                }

                var titleColor="#FFF";

                if(item.titleColor){
                titleColor=item.titleColor;
                }
                %>
                <a href="<%= item.link %>" class="imgNav-img bdbox" style="background-image: url(<%= item.pic %>);">
                    <%if(item.showtitle.length){%>
                    <p class="info bdbox" style="background-color:<%=titleBackgroundColor%>;color:<%=titleColor%>"><%=item.showtitle%></p>

                    <%}%>
                </a>
                <% }) %>
                <% } %>
            </section>
            <%}else if(content.layout1_style==2){%>
            <section class="diy-imgNav-layout1-style2 clearfix">
                <% if(content.dataset.length){ %>
                <% _.each(content.dataset,function(item){ %>
                <a href="#" class="diy-imgNav-item bdbox">
                    <em class="photo-bg" style="background-image:url(<%= item.pic %>);"></em>
                    <%if(item.showtitle.length){%>
                    <p class="nav-txt"><%=item.showtitle%></p>
                    <%}%>
                </a>
                <% }) %>
                <% } %>
            </section>
            <%}%>
            <%}else{%>
            <section class="diy-imgNav-adaptImg col<%= content.dataset.length %> <%if(content.hasImgMargin==2){%>hasNoMargin<%}%> clearfix">
                <% if(content.dataset.length){ %>
                <% _.each(content.dataset,function(item,index){ %>
                <%if(index==4) return false;%>
                <a href="#" class="bdbox">
                    <p><img src="<%= item.pic %>" alt=""></p>
                    <%if(item.showtitle.length){%>
                    <p class="txt"><%= item.showtitle %></p>
                    <%}%>
                </a>
                <% }) %>
                <% }else{ %>
                <a href="#" class="bdbox">
                    <p><img src="/Public/images/diy/waitupload.png" alt=""></p>
                    <p class="txt">导航文字</p>
                </a>
                <a href="#" class="bdbox">
                    <p><img src="/Public/images/diy/waitupload.png" alt=""></p>
                    <p class="txt">导航文字</p>
                </a>
                <a href="#" class="bdbox">
                    <p><img src="/Public/images/diy/waitupload.png" alt=""></p>
                    <p class="txt">导航文字</p>
                </a>
                <a href="#" class="bdbox">
                    <p><img src="/Public/images/diy/waitupload.png" alt=""></p>
                    <p class="txt">导航文字</p>
                </a>
                <% } %>
            </section>
            <%}%>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type8">
    <div class="formitems">
        <label class="fi-name">布局方式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="layout" value="1" <% if(content.layout==1){ %>checked<% } %> >固定大小</label>
                <label><input type="radio" name="layout" value="2" <% if(content.layout==2 || typeof content.layout=="undefined"){ %>checked<% } %> >根据图片适应</label>
            </div>
        </div>
    </div>

    <%if(content.layout==2){%>
    <div class="formitems">
        <label class="fi-name">图片间距：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="hasImgMargin" value="1" <% if(content.hasImgMargin==1 || typeof content.hasImgMargin=="undefined"){ %>checked<% } %> >有间距</label>
                <label><input type="radio" name="hasImgMargin" value="2" <% if(content.hasImgMargin==2){ %>checked<% } %> >无间距</label>
            </div>
        </div>
    </div>
    <%}%>

    <%if(content.layout==1){%>
    <div class="formitems">
        <label class="fi-name">样式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="layout1_style" value="1" <% if(content.layout1_style==1 || typeof content.layout1_style=="undefined"){ %>checked<% } %> >样式一</label>
                <label><input type="radio" name="layout1_style" value="2" <% if(content.layout1_style==2){ %>checked<% } %> >样式二</label>
            </div>
        </div>
    </div>
    <%}%>

    <div class="formitems">
        <label class="fi-name">模块上下边距：</label>
        <div class="form-controls">
            <div class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%=content.modulePadding%>px</span>
        </div>
    </div>

    <%if(content.layout==1){%>
    <div class="formitems">
        <label class="fi-name">建议尺寸：</label>
        <div class="form-controls pdt3">
            <p>建议上传160px*160px大小的图片</p>
        </div>
    </div>
    <%}%>

    <ul class="ctrl-item-list">
        <% _.each(content.dataset,function(item){ %>	
        <li class="ctrl-item-list-li clearfix">
            <div class="fl">
                <div class="imgnav j-selectimg">
                    <% if(item.pic && item.pic!=""){ %>
                    <img src="<%= item.pic %>">
                    <span class="imgnav-reselect">重新选择</span>
                    <% }else{ %>
                    <p class="imgnav-select">选择图片</p>
                    <% } %>
                </div>
                <span class="fi-help-text txtCenter mgt5 j-verify-pic"></span>
            </div>

            <div class="fl imgnav-info">
                <div class="formitems">  
                    <label class="fi-name">链接到：</label>  
                    <div class="form-controls">
                        <% if(item.linkType && item.linkType!=11){ %>
                        <a href="<%= item.link %>" target="_blank" class="badge badge-success" title="<%= item.title %>">
                            <span><%= HYD.linkType[item.linkType] %></span>
                            <em class="badge-link ovfEps"><%= item.title %></em>
                        </a>
                        <%}%>

                        <% if(item.linkType==11){ %>
                        <input type="text" name="customlink" class="input" value="<%= item.link %>">
                        <% } %>

                        <div class="droplist">
                            <a href="javascript:;" class="droplist-title j-droplist-toggle">
                                <% if(item.linkType==0){ %>
                                <span>请选择</span>
                                <%}else{%>
                                <span>修改</span>
                                <%}%>
                                <i class="gicon-chevron-down mgl5"></i>
                            </a>
                            <ul class="droplist-menu">
                                <li data-val="1"><a href="javascript:;"><%= HYD.linkType[1] %></a></li>
                                <li data-val="2"><a href="javascript:;"><%= HYD.linkType[2] %></a></li>
                                <li data-val="3"><a href="javascript:;"><%= HYD.linkType[3] %></a></li>
                                <li data-val="4"><a href="javascript:;"><%= HYD.linkType[4] %></a></li>
                                <li data-val="5"><a href="javascript:;"><%= HYD.linkType[5] %></a></li>
                                <li data-val="6"><a href="javascript:;"><%= HYD.linkType[6] %></a></li>
                                <li data-val="7"><a href="javascript:;"><%= HYD.linkType[7] %></a></li>
                                <li data-val="8"><a href="javascript:;"><%= HYD.linkType[8] %></a></li>
                                <li data-val="10"><a href="javascript:;"><%= HYD.linkType[10] %></a></li>
                                <li data-val="9"><a href="javascript:;"><%= HYD.linkType[9] %></a></li>
                                <li data-val="12"><a href="javascript:;"><%= HYD.linkType[12] %></a></li>
                                <li data-val="11"><a href="javascript:;"><%= HYD.linkType[11] %></a></li>
                                <li data-val="13"><a href="javascript:;"><%= HYD.linkType[13] %></a></li>
                            </ul>
                        </div>
                        <input type="hidden" class="j-verify" name="item_id" value="">
                        <span class="fi-help-text j-verify-linkType"></span>
                    </div>
                </div>

                <div class="formitems">  
                    <label class="fi-name">导航名称：</label>
                    <div class="form-controls">
                        <input type="text" name="title" class="input xlarge" value="<%= item.showtitle %>">
                        <span class="fi-help-text"></span>
                    </div>
                </div>

                <%if(content.layout==1 && content.layout1_style==1){%>
                <div class="formitems">
                    <label class="fi-name">文字背景颜色：</label> 
                    <div class="form-controls">
                        <%
                        var titleBackgroundColor="#FE9303";

                        if(item.titleBackgroundColor){
                        titleBackgroundColor=item.titleBackgroundColor;
                        }
                        %>
                        <a href="javascript:;" class="colorPicker j-imgNav-cp" data-color="<%=titleBackgroundColor%>" style="background-color:<%=titleBackgroundColor%>">点击选择</a>
                    </div>
                </div>
                <%}%>

                <!-- 修改文字颜色 -->
                <div class="formitems">
                    <label class="fi-name">文字颜色：</label> 
                    <div class="form-controls">
                        <%
                        var titleColor="#FFF";

                        if(item.titleColor){
                        titleColor=item.titleColor;
                        }
                        %>
                        <a href="javascript:;" class="colorPicker j-textColor-cp" data-color="<%=titleColor%>" style="background-color:<%=titleColor%>">点击选择</a>
                    </div>
                </div>

            </div>

            <div class="ctrl-item-list-actions">
                <a href="javascript:;" title="上移" class="j-moveup"><i class="gicon-arrow-up"></i></a>
                <a href="javascript:;" title="下移" class="j-movedown"><i class="gicon-arrow-down"></i></a>
                <a href="javascript:;" title="删除" class="j-del"><i class="gicon-remove"></i></a>
            </div>
        </li>	
        <% }) %>
        <% if(content.dataset.length <4 ){ %>
        <li class="ctrl-item-list-add" title="添加">+</li>
        <% } %>	
    </ul>
    <span class="fi-help-text mgt15 j-verify-least"></span>
</script>
<!-- type8 imgNav end-->

<!-- type9 imgAd start--><!-- 技 -->
<script type="text/j-template" id="tpl_diy_con_type9">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">
            <% if(content.showType==1){ %>
            <section class="members_flash" id="mySwipe">
                <ul class="clearfix">
                    <% if(content.dataset.length){ %>
                    <li>
                        <a href="<%= content.dataset[0].link %>" title="<%= content.dataset[0].showtitle %>">
                            <% if(content.dataset[0].pic!=""){ %>
                            <% if(content.is_compress){ %>
                            <img src="<%= content.dataset[0].pic %>300x300" width="100%" />
                            <% }else{ %>
                            <img src="<%= content.dataset[0].pic %>" width="100%" />
                            <% } %>
                            <% }else{ %>
                            <img src="/Public/images/diy/imgad.jpg" width="100%" />
                            <% } %>
                        </a>
                    </li>
                    <% }else{ %>
                    <li><a href="" title=""><img src="/Public/images/diy/imgad.jpg" width="100%" /></a></li>
                    <% } %>
                </ul>
                <section class="members_flash_time">
                    <% if(content.dataset.length>1){ %>
                    <% _.each(content.dataset,function(item,index){ %>
                    <span <% if(index==0){ %>class="cur"<% } %> ></span>
                    <% }) %>
                    <% } %>
                </section>
            </section>
            <% }else{ %>
            <section class="members_imgad">
                <ul class="clearfix">
                    <% if(content.dataset.length){ %>
                    <% _.each(content.dataset,function(item){ %>
                    <li style="margin-bottom:<%=content.margin%>px;">
                        <a href="<%= item.link %>" title="<%= item.showtitle %>">
                            <% if(item.pic!=""){ %>
                            <img src="<%= item.pic %>" width="100%" />
                            <% }else{ %>
                            <img src="/Public/images/diy/imgad.jpg" width="100%" />
                            <% } %>
                        </a>
                        <% if(item.showtitle || item.subtitle){ %>
                        <section class="imgad_info">
                            <p class="img_title"><%= item.showtitle %></p>
                            <p class="img_sub_title"><%= item.subtitle %></p>
                        </section>
                        <% } %>
                    </li>
                    <% }) %>
                    <% }else{ %>
                    <li><a href="" title=""><img src="/Public/images/diy/imgad.jpg" width="100%" /></a></li>
                    <% } %>
                </ul>
            </section>
            <% } %>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type9">
    <div class="formitems mgb10">
        <label class="fi-name">显示方式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="showType" value="1" <% if(content.showType==1){ %>checked<% } %> >折叠轮播</label>
                <label><input type="radio" name="showType" value="2" <% if(content.showType==2){ %>checked<% } %>>分开显示</label>
            </div>
        </div>
    </div>
    <% if(content.showType==2){ %>
    <div class="formitems inline">  
        <label class="fi-name">每张图片上下距离：</label>
        <div class="form-controls">
            <div class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><% if(content.margin){ %><%= content.margin %><% }else{ %>0<% } %>px</span>
        </div>
    </div>	
    <% } %>
    <div class="formitems">
        <label class="fi-name">模块上下边距：</label>
        <div class="form-controls">
            <div class="fl diy-slider j-slider2"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight2"><%= content.modulePadding%>px</span>
        </div>
    </div>
    <ul class="ctrl-item-list">
        <% _.each(content.dataset,function(item){ %>
        <li class="ctrl-item-list-li clearfix">
            <div class="fl">
                <div class="imgnav j-selectimg">
                    <% if(item.pic && item.pic!=""){ %>
                    <img src="<%= item.pic %>">
                    <span class="imgnav-reselect">重新选择</span>
                    <% }else{ %>
                    <p class="imgnav-select">选择图片</p>
                    <% } %>
                </div>
                <span class="fi-help-text txtCenter mgt5 j-verify-pic"></span>
            </div>
            <div class="fl imgnav-info">
                <div class="formitems">  
                    <label class="fi-name">链接到：</label>  
                    <div class="form-controls">
                        <% if(item.linkType && item.linkType!=11){ %>
                        <a href="<%= item.link %>" target="_blank" class="badge badge-success" title="<%= item.title %>">
                            <span><%= HYD.linkType[item.linkType] %></span>
                            <em class="badge-link ovfEps"><%= item.title %></em>
                        </a>
                        <%}%>

                        <% if(item.linkType==11){ %>
                        <input type="text" name="customlink" class="input" value="<%= item.link %>">
                        <% } %>

                        <div class="droplist">
                            <a href="javascript:;" class="droplist-title j-droplist-toggle">
                                <% if(item.linkType==0){ %>
                                <span>请选择</span>
                                <%}else{%>
                                <span>修改</span>
                                <%}%>
                                <i class="gicon-chevron-down mgl5"></i>
                            </a>
                            <ul class="droplist-menu">
                                <li data-val="1"><a href="javascript:;"><%= HYD.linkType[1] %></a></li>
                                <li data-val="2"><a href="javascript:;"><%= HYD.linkType[2] %></a></li>
                                <li data-val="3"><a href="javascript:;"><%= HYD.linkType[3] %></a></li>
                                <li data-val="4"><a href="javascript:;"><%= HYD.linkType[4] %></a></li>
                                <li data-val="5"><a href="javascript:;"><%= HYD.linkType[5] %></a></li>
                                <li data-val="6"><a href="javascript:;"><%= HYD.linkType[6] %></a></li>
                                <li data-val="7"><a href="javascript:;"><%= HYD.linkType[7] %></a></li>
                                <li data-val="8"><a href="javascript:;"><%= HYD.linkType[8] %></a></li>
                                <li data-val="10"><a href="javascript:;"><%= HYD.linkType[10] %></a></li>
                                <li data-val="9"><a href="javascript:;"><%= HYD.linkType[9] %></a></li>
                                <li data-val="12"><a href="javascript:;"><%= HYD.linkType[12] %></a></li>
                                <li data-val="11"><a href="javascript:;"><%= HYD.linkType[11] %></a></li>
                                <li data-val="13"><a href="javascript:;"><%= HYD.linkType[13] %></a></li>
                            </ul>
                        </div>
                        <input type="hidden" class="j-verify" name="item_id" value="">
                        <span class="fi-help-text j-verify-linkType"></span>
                    </div>
                </div>
                <div class="formitems">  
                    <label class="fi-name">标题：</label>
                    <div class="form-controls">
                        <input type="text" name="title" class="input xlarge" value="<%= item.showtitle %>">
                        <span class="fi-help-text"></span>
                    </div>
                </div>
                <div class="formitems">  
                    <label class="fi-name">副标题：</label>
                    <div class="form-controls">
                        <input type="text" name="subtitle" class="input xlarge" value="<%= item.subtitle %>">
                        <span class="fi-help-text"></span>
                    </div>
                </div>
            </div>
            <div class="ctrl-item-list-actions">
                <a href="javascript:;" title="上移" class="j-moveup"><i class="gicon-arrow-up"></i></a>
                <a href="javascript:;" title="下移" class="j-movedown"><i class="gicon-arrow-down"></i></a>
                <a href="javascript:;" title="删除" class="j-del"><i class="gicon-remove"></i></a>
            </div>
        </li>
        <% }) %>
        <% if(content.dataset.length<6){ %>
        <li class="ctrl-item-list-add" title="添加">+</li>
        <% } %>
    </ul>
    <span class="fi-help-text mgt15 j-verify-least"></span>
</script>
<!-- type9 imgAd end-->

<!-- type10 customLine start-->
<script type="text/j-template" id="tpl_diy_con_type10">
    <div class="members_con">
        <section class="custom-line-wrap"><hr class="custom-line"></section>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type10">
    <div class="formitems pdt5"><p>分割线</p></div>
</script>
<!-- type10 customLine end-->

<!-- type11 customSpace start-->
<script type="text/j-template" id="tpl_diy_con_type11">
    <div class="members_con">
        <section class="custom-space" style="height:<%= content.height %>px;"></section>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type11">
    <div class="formitems inline">  
        <label class="fi-name">高度：</label>
        <div class="form-controls">
            <div id="slider" class="fl"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%= content.height %>px</span>
        </div>
    </div>	
</script>
<!-- type11 customSpace end-->

<!-- type12 topNav start-->
<script type="text/j-template" id="tpl_diy_con_type12">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">
            <%if(content.dataset.length){%>
            <% if(content.style == 1){ %>
            <div class="homeCnavbox swiper-container" style="height:50px;">
                <ul class="swiper-wrapper topnav clearfix">
                    <% _.each(content.dataset,function(item){ %>
                    <li class="swiper-slide liwid<%=content.dataset.length %>">
                        <a href="<%= item.link %>" class="colblue" style="background-color:<%= item.bgColor %>;margin-right:<%= content.marginstyle%>px">
                            <img src="<%= item.pic %>">
                            <h3 style="color:<%=item.fotColor%>"><%= item.showtitle %></h3>
                        </a>
                    </li>
                    <% }) %>				
                </ul>
            </div>
            <% }else{ %>
            <div class="homeCnavbox swiper-container" style="height:44px;line-height:44px;">
                <ul class="swiper-wrapper topnav clearfix" style="height:44px;line-height:44px;">
                    <% _.each(content.dataset,function(item){ %>
                    <li class="swiper-slide liwid<%=content.dataset.length %>" style="height:44px;line-height:44px;">
                        <a href="<%= item.link %>" class="colblue" style="background-color:<%= item.bgColor %>;height:44px;line-height:44px;margin-right:<%= content.marginstyle %>px">
                            <h3 style="color:<%=item.fotColor%>;height:44px;line-height:44px;"><%= item.showtitle %></h3>
                        </a>
                    </li>
                    <% }) %>				
                </ul>
            </div>
            <% } %>	
            <%}%>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type12">
    <div class="formitems mgb10">
        <label class="fi-name">导航类型：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="showstyle" value="0" <% if(content.style == 0||!content.style){ %>checked<% } %> >纯文字导航</label>
                <label><input type="radio" name="showstyle" value="1" <% if(content.style == 1){ %>checked<% } %> >小图标导航</label>
            </div>
        </div>
    </div>

    <div class="formitems mgb10">
        <label class="fi-name">是否显示边距：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="marginstyle" value="0" <% if(content.marginstyle == 0||!content.marginstyle){ %>checked<% } %> >无边距</label>
                <label><input type="radio" name="marginstyle" value="1" <% if(content.marginstyle == 1){ %>checked<% } %> >有边距</label>
            </div>
        </div>
    </div>

    <div class="formitems">
        <label class="fi-name">模块上下边距：</label>
        <div class="form-controls">
            <div class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%= content.modulePadding%>px</span>
        </div>
    </div>

    <ul class="ctrl-item-list mgt10">
        <% _.each(content.dataset,function(item){ %>
        <li class="ctrl-item-list-li">
            <div class="formitems">  
                <label class="fi-name">链接到：</label>  
                <div class="form-controls">
                    <% if(item.linkType && item.linkType!=11){ %>
                    <a href="<%= item.link %>" target="_blank" class="badge badge-success" title="<%= item.title %>">
                        <span><%= HYD.linkType[item.linkType] %></span>
                        <em class="badge-link ovfEps"><%= item.title %></em>
                    </a>
                    <%}%>

                    <% if(item.linkType==11){ %>
                    <input type="text" name="customlink" class="input" value="<%= item.link %>">
                    <% } %>

                    <div class="droplist j-navDplist">
                        <a href="javascript:;" class="droplist-title j-droplist-toggle">
                            <% if(item.linkType==0){ %>
                            <span>请选择</span>
                            <%}else{%>
                            <span>修改</span>
                            <%}%>
                            <i class="gicon-chevron-down mgl5"></i>
                        </a>
                        <ul class="droplist-menu">
                            <li data-val="1"><a href="javascript:;"><%= HYD.linkType[1] %></a></li>
                            <li data-val="2"><a href="javascript:;"><%= HYD.linkType[2] %></a></li>
                            <li data-val="3"><a href="javascript:;"><%= HYD.linkType[3] %></a></li>
                            <li data-val="4"><a href="javascript:;"><%= HYD.linkType[4] %></a></li>
                            <li data-val="5"><a href="javascript:;"><%= HYD.linkType[5] %></a></li>
                            <li data-val="6"><a href="javascript:;"><%= HYD.linkType[6] %></a></li>
                            <li data-val="7"><a href="javascript:;"><%= HYD.linkType[7] %></a></li>
                            <li data-val="8"><a href="javascript:;"><%= HYD.linkType[8] %></a></li>
                            <li data-val="10"><a href="javascript:;"><%= HYD.linkType[10] %></a></li>
                            <li data-val="9"><a href="javascript:;"><%= HYD.linkType[9] %></a></li>
                            <li data-val="12"><a href="javascript:;"><%= HYD.linkType[12] %></a></li>
                            <li data-val="11"><a href="javascript:;"><%= HYD.linkType[11] %></a></li>
                            <li data-val="13"><a href="javascript:;"><%= HYD.linkType[13] %></a></li>
                        </ul>
                    </div>
                    <input type="hidden" class="j-verify" name="item_id" value="">
                    <% if(item.linkType==9){ %>
                    <span class="fi-help-text">外链请加上 http:// 前缀</span>
                    <% } %>
                    <span class="fi-help-text j-verify-linkType"></span>
                </div>
            </div>
            <div class="formitems">  
                <label class="fi-name">导航名称：</label>
                <div class="form-controls">
                    <input type="text" name="navtitle" class="input xlarge" value="<%= item.showtitle %>">
                    <span class="fi-help-text"></span>
                </div>
            </div>
            <% if(content.style == 1){ %>
            <div class="formitems">  
                <label class="fi-name">小图标：</label>
                <div class="form-controls">
                    <div class="header_style2_dataset_pic inline-block">
                        <img src="<%= item.pic %>">
                    </div>
                    <a href="javascript:;" class="btn btn-primary btn-small j-navModifyIcon">修改</a>
                    <a href="javascript:;" class="btn btn-primary btn-small j-uploadIcon">上传</a>
                    <span class="fi-help-text">建议尺寸：60 * 60 像素</span>
                </div>
            </div>
            <% } %>
            <div class="formitems">  
                <label class="fi-name">背景颜色：</label>
                <div class="form-controls">
                    <div class="colorPicker" id="#j_clp_col_<%= item.cloPicker %>" data-name="col_<%= item.cloPicker %>" data-color="<%= item.bgColor %>" style="background-color:<%= item.bgColor %>">颜色选择</div>
                    <span class="fi-help-text"></span>
                </div>
            </div>
            <div class="formitems">  
                <label class="fi-name">文字颜色：</label>
                <div class="form-controls">
                    <div class="colorPicker" id="#j_clp_col_<%= item.cloPicker %>" data-name="col_<%= item.cloPicker %>" data-color="<%= item.fotColor %>" style="background-color:<%= item.fotColor %>">颜色选择</div>
                    <span class="fi-help-text"></span>
                </div>
            </div>
            <div class="ctrl-item-list-actions">
                <a href="javascript:;" title="上移" class="j-moveup"><i class="gicon-arrow-up"></i></a>
                <a href="javascript:;" title="下移" class="j-movedown"><i class="gicon-arrow-down"></i></a>
                <a href="javascript:;" title="删除" class="j-del"><i class="gicon-remove"></i></a>
            </div>
        </li>
        <% }) %>
        <li class="ctrl-item-list-add" title="添加">+</li>
    </ul>
</script>
<!-- type12 topNav end-->

<!-- type 13 board start -->
<script type="text/j-template" id="tpl_diy_con_type13">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">
            <%if(content.version && content.version==2){%>
            <%if(content.layout==0){%>
            <section class="diy-showcase col2">
                <%_.each(content.dataset,function(item,index){%>
                <a href="#" class="con-img bdbox img-<%=index+1%>" style="background-image:url(<%=item.pic%><%if(item.is_compress){%>480x480<%}%>)">						
                    <%if(item.showTitle==1){%>
                    <p class="info bdbox"><%=item.title%></p>
                    <%}%>
                </a>
                <%})%>
            </section>
            <%}else if(content.layout==1){%>
            <section class="diy-showcase col3 clearfix">
                <%_.each(content.dataset,function(item){%>
                <a href="#" class="con-img bdbox" style="background-image:url(<%=item.pic%><%if(item.is_compress){%>480x480<%}%>)">
                    <%if(item.showTitle==1){%>
                    <p class="info bdbox"><%=item.title%></p>
                    <%}%>
                </a>
                <%})%>
            </section>
            <%}%>
            <%}else{%>
            <section class="members_nav1">
                <ul class="clearfix">
                    <% if(content.dataset.length){ %>
                    <% _.each(content.dataset,function(item,e){ %>
                    <% if(content.layout == 0){ %>
                    <li class="board<%= content.dataset.length %> <% if(content.layout == 0&&e == 0){ %>big_board<% } %> <% if(content.layout == 0&&e != 0){ %>small_board<% } %>">
                        <span>
                            <a href="<%= item.link %>">
                                <% if(item.is_compress){ %>
                                <img src="<%= item.pic %>80x80">
                                <% }else{ %>
                                <img src="<%= item.pic %>">
                                <% } %>
                            </a>
                        </span>
                    </li>
                    <% }else{ %>
                    <li class="board<%= content.dataset.length %>">
                        <span>
                            <a href="<%= item.link %>">
                                <% if(item.is_compress){ %>
                                <img src="<%= item.pic %>80x80">
                                <% }else{ %>
                                <img src="<%= item.pic %>">
                                <% } %>
                            </a>
                        </span>
                    </li>
                    <% } %>
                    <% }) %>
                    <% }else{ %>
                    <li class="board3 <% if(content.layout == 0){ %>big_board<% } %>">
                        <span><a href=""><img src="/Public/images/diy/waitupload2.png"></a></span>
                    </li>
                    <li class="board3 <% if(content.layout == 0){ %>small_board<% } %>">
                        <span><a href=""><img src="/Public/images/diy/waitupload.png"></a></span>
                    </li>
                    <li class="board3 <% if(content.layout == 0){ %>small_board<% } %>">
                        <span><a href=""><img src="/Public/images/diy/waitupload.png"></a></span>
                    </li>
                    <% } %>
                </ul>
            </section>
            <%}%>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type13">
    <%if(content.version && content.version==2){%>
    <div class="formitems">
        <label class="fi-name">布局方式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="layout" value="0" <% if(content.layout==0){ %>checked<% } %>>2列</label>
                <label><input type="radio" name="layout" value="1" <% if(content.layout==1){ %>checked<% } %>>3列</label>
            </div>
        </div>
    </div>
    <div class="formitems">
        <label class="fi-name">模块上下边距：</label>
        <div class="form-controls">
            <div class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%= content.modulePadding%>px</span>
        </div>
    </div>
    <div class="formitems">
        <label class="fi-name">上传图片建议：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <p>正方形图片建议尺寸：370px*370px</p>
                <p>长方形图片建议尺寸：370px*750px</p>
            </div>
        </div>
    </div>
    <ul class="ctrl-item-list">
        <% _.each(content.dataset,function(item,index){ %>
        <li class="ctrl-item-list-li clearfix">
            <div class="fl">
                <div class="imgnav j-selectimg">
                    <% if(item.pic && item.pic!=""){ %>
                    <%if(item.is_compress){%>
                    <img src="<%= item.pic %>180x180">
                    <%}else{%>
                    <img src="<%= item.pic %>">
                    <%}%>
                    <span class="imgnav-reselect">重新选择</span>
                    <% }else{ %>
                    <p class="imgnav-select">选择图片</p>
                    <% } %>
                </div>
                <span class="fi-help-text txtCenter mgt5 j-verify-pic"></span>
            </div>

            <div class="fl imgnav-info">
                <div class="formitems">  
                    <label class="fi-name">链接到：</label>  
                    <div class="form-controls">
                        <% if(item.linkType && item.linkType!=11){ %>
                        <a href="<%= item.link %>" target="_blank" class="badge badge-success" title="<%= item.title %>">
                            <span><%= HYD.linkType[item.linkType] %></span>
                            <em class="badge-link ovfEps"><%= item.title %></em>
                        </a>
                        <%}%>

                        <% if(item.linkType==11){ %>
                        <input type="text" name="customlink" class="input" value="<%= item.link %>">
                        <% } %>

                        <div class="droplist">
                            <a href="javascript:;" class="droplist-title j-droplist-toggle">
                                <% if(item.linkType==0){ %>
                                <span>请选择</span>
                                <%}else{%>
                                <span>修改</span>
                                <%}%>
                                <i class="gicon-chevron-down mgl5"></i>
                            </a>
                            <ul class="droplist-menu">
                                <li data-val="1"><a href="javascript:;"><%= HYD.linkType[1] %></a></li>
                                <li data-val="2"><a href="javascript:;"><%= HYD.linkType[2] %></a></li>
                                <li data-val="3"><a href="javascript:;"><%= HYD.linkType[3] %></a></li>
                                <li data-val="4"><a href="javascript:;"><%= HYD.linkType[4] %></a></li>
                                <li data-val="5"><a href="javascript:;"><%= HYD.linkType[5] %></a></li>
                                <li data-val="6"><a href="javascript:;"><%= HYD.linkType[6] %></a></li>
                                <li data-val="7"><a href="javascript:;"><%= HYD.linkType[7] %></a></li>
                                <li data-val="8"><a href="javascript:;"><%= HYD.linkType[8] %></a></li>
                                <li data-val="10"><a href="javascript:;"><%= HYD.linkType[10] %></a></li>
                                <li data-val="9"><a href="javascript:;"><%= HYD.linkType[9] %></a></li>
                                <li data-val="12"><a href="javascript:;"><%= HYD.linkType[12] %></a></li>
                                <li data-val="11"><a href="javascript:;"><%= HYD.linkType[11] %></a></li>
                                <li data-val="13"><a href="javascript:;"><%= HYD.linkType[13] %></a></li>
                            </ul>
                        </div>
                        <input type="hidden" class="j-verify" name="item_id" value="">
                        <span class="fi-help-text j-verify-linkType"></span>
                    </div>
                </div>
                <div class="formitems">
                    <label class="fi-name">是否显示文字：</label> 
                    <div class="form-controls">
                        <div class="radio-group">
                            <label><input type="radio" name="showTitle_<%=index%>" class="j-showTitle" value="1" <% if(item.showTitle==1){ %>checked<% } %> >显示</label>
                            <label><input type="radio" name="showTitle_<%=index%>" class="j-showTitle" value="0" <% if(item.showTitle==0){ %>checked<% } %>>隐藏</label>
                        </div>
                    </div>
                </div> 
                <%if(item.showTitle==1){%>
                <div class="formitems">
                    <label class="fi-name">显示文字：</label>
                    <div class="form-controls">
                        <input type="text" name="title" class="input" value="<%= item.title %>">
                    </div>
                </div>
                <%}%> 
            </div>
        </li>
        <% }) %>
    </ul>
    <span class="fi-help-text mgt15 j-verify-least"></span>
    <%}else{%>
    <div class="formitems">
        <label class="fi-name">布局方式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="layout" value="0" <% if(content.layout==0){ %>checked<% } %>>2列</label>
                <label><input type="radio" name="layout" value="1" <% if(content.layout==1){ %>checked<% } %>>3列</label>
            </div>
        </div>
    </div>
    <div class="formitems">
        <label class="fi-name">模块上下边距：</label>
        <div class="form-controls">
            <div class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%= content.modulePadding%>px</span>
        </div>
    </div>
    <ul class="ctrl-item-list">
        <% _.each(content.dataset,function(item){ %>
        <li class="ctrl-item-list-li clearfix">
            <div class="fl">
                <div class="imgnav j-selectimg">
                    <% if(item.pic && item.pic!=""){ %>
                    <% if(item.is_compress){ %>
                    <img src="<%= item.pic %>80x80">
                    <% }else{ %>
                    <img src="<%= item.pic %>">
                    <% } %>
                    <span class="imgnav-reselect">重新选择</span>
                    <% }else{ %>
                    <p class="imgnav-select">选择图片</p>
                    <% } %>
                </div>
                <span class="fi-help-text txtCenter mgt5 j-verify-pic"></span>
            </div>

            <div class="fl imgnav-info">
                <div class="formitems">  
                    <label class="fi-name">链接到：</label>  
                    <div class="form-controls">
                        <% if(item.linkType && item.linkType!=11){ %>
                        <a href="<%= item.link %>" target="_blank" class="badge badge-success" title="<%= item.title %>">
                            <span><%= HYD.linkType[item.linkType] %></span>
                            <em class="badge-link ovfEps"><%= item.title %></em>
                        </a>
                        <%}%>

                        <% if(item.linkType==11){ %>
                        <input type="text" name="customlink" class="input" value="<%= item.link %>">
                        <% } %>

                        <div class="droplist">
                            <a href="javascript:;" class="droplist-title j-droplist-toggle">
                                <% if(item.linkType==0){ %>
                                <span>请选择</span>
                                <%}else{%>
                                <span>修改</span>
                                <%}%>
                                <i class="gicon-chevron-down mgl5"></i>
                            </a>
                            <ul class="droplist-menu">
                                <li data-val="1"><a href="javascript:;"><%= HYD.linkType[1] %></a></li>
                                <li data-val="2"><a href="javascript:;"><%= HYD.linkType[2] %></a></li>
                                <li data-val="3"><a href="javascript:;"><%= HYD.linkType[3] %></a></li>
                                <li data-val="4"><a href="javascript:;"><%= HYD.linkType[4] %></a></li>
                                <li data-val="5"><a href="javascript:;"><%= HYD.linkType[5] %></a></li>
                                <li data-val="6"><a href="javascript:;"><%= HYD.linkType[6] %></a></li>
                                <li data-val="7"><a href="javascript:;"><%= HYD.linkType[7] %></a></li>
                                <li data-val="8"><a href="javascript:;"><%= HYD.linkType[8] %></a></li>
                                <li data-val="10"><a href="javascript:;"><%= HYD.linkType[10] %></a></li>
                                <li data-val="9"><a href="javascript:;"><%= HYD.linkType[9] %></a></li>
                                <li data-val="12"><a href="javascript:;"><%= HYD.linkType[12] %></a></li>
                                <li data-val="11"><a href="javascript:;"><%= HYD.linkType[11] %></a></li>
                                <li data-val="13"><a href="javascript:;"><%= HYD.linkType[13] %></a></li>
                            </ul>
                        </div>
                        <input type="hidden" class="j-verify" name="item_id" value="">
                        <span class="fi-help-text j-verify-linkType"></span>
                    </div>
                </div>
                <div class="formitems" style="line-height:28px;"> 
                    <label class="fi-name">大图尺寸：</label> 
                    <div class="form-controls">300*610</div>
                </div>
                <div class="formitems" style="line-height:28px;"> 
                    <label class="fi-name">小图尺寸：</label> 
                    <div class="form-controls">300*300</div>
                </div>
            </div>

        </li>
        <% }) %>
    </ul>
    <span class="fi-help-text mgt15 j-verify-least"></span>
    <%}%>
</script>
<!-- type 13 board end -->

<!-- type14 video start-->
<script type="text/j-template" id="tpl_diy_con_type14">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">
            <iframe class="diy-video" src="/Public/images/video.jpg" width="100%" height="220" wmode="transparen" allowfullscreen="true" style="border:0;"></iframe>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type14">
    <div class="formitems inline">  
        <label class="fi-name">视频地址：</label>
        <div class="form-controls">
            <div class="diy-videowebsite"><input type="text" name="" value="<%= content.website%>" placeholder=""><a href="javascript:;" title="确定视频地址" class="btn btn-primary j-getvideo">确定</a></div>
            <span class="diy-node">目前只支持腾讯视频，一定要填写带有vid或者sid的视频地址</span>
        </div>
    </div>
    <div class="formitems">
        <label class="fi-name">模块上下边距：</label>
        <div class="form-controls">
            <div class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%= content.modulePadding%>px</span>
        </div>
    </div>
</script>
<!-- type14 video end-->

<!-- type15 video start-->
<script type="text/j-template" id="tpl_diy_con_type15">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">
            <div class="diy-audio clearfix" data-src="<%= content.audiosrc %>">
                <img class="fr" <% if(content.imgsrc && content.imgsrc!=""){ %>src="<%= content.imgsrc %>"<% }else{ %>src="/PublicMob/images/people.png"<% } %> width="40" alt="">
                     <div style="margin-right:45px;height:40px;line-height: 40px;background: url(/PublicMob/images/wxaudio.png) right center no-repeat;background-size: auto 100%;padding-right: 45px; text-align: right;color: #fff;font-size: 14px;">缓冲完成后音频才可播放！</div>
                <sub></sub>
                <b></b>
            </div>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type15">
    <div class="formitems inline">  
        <label class="fi-name">显示头像：</label>
        <div class="form-controls">
            <!-- <div class="header_style2_dataset_pic inline-block">
                    <img src="<%= content.imgsrc %>">
            </div>-->
            <div class="imgnav j-selectimg">
                <% if(content.imgsrc && content.imgsrc!=""){ %>
                <img src="<%= content.imgsrc %>">
                <span class="imgnav-reselect">重新选择</span>
                <% }else{ %>
                <p class="imgnav-select">选择图片</p>
                <% } %>
            </div>
            <span class="fi-help-text">建议尺寸：100 * 100 像素</span>
        </div>
    </div>	
    <div class="formitems inline">  
        <label class="fi-name">选择/修改语音：</label>
        <div class="form-controls">
            <div class="imgnav j-audioselect" style="height:30px;">
                <% if(content.audiosrc && content.audiosrc!=""){ %>
                <img src="/PublicMob/images/wxaudio_small.png" data-src="<%= content.audiosrc %>">
                <span class="imgnav-reselect">重新选择</span>
                <% }else{ %>
                <p class="imgnav-select" style="padding:0;line-height:30px;">选择语音</p>
                <% } %>
            </div>
            <span class="fi-help-text">音频支持格式：mp3</span>
        </div>
    </div>	
    <div class="formitems">
        <label class="fi-name">模块上下边距：</label>
        <div class="form-controls">
            <div class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%= content.modulePadding%>px</span>
        </div>
    </div>
</script>
<!-- type15 video end-->

<!-- type16 notice start-->
<script type="text/j-template" id="tpl_diy_con_type16">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">
            <section class="members_notice <% if(content.noticeStyle==2){ %>noticeStyle2<% } %>" style="background-color:<%= content.bgColor %>;">
                <% if(content.strLength > 18){ %>
                <marquee class="j-notice notice-con <%= content.fontSize %>" scrollamount='5'>公告：<%= content.showtitle %></marquee>
                <% }else{ %>
                <h2 class="j-notice notice-con <%= content.fontSize %>" style="color:<%=content.fontColor%>">公告：<%= content.showtitle %></h2>
                <% } %>
            </section>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type16">
    <div class="formitems">  
        <label class="fi-name">公告：</label>
        <div class="form-controls">
            <input type="text" name="notice" class="input xlarge" value="<%= content.showtitle %>">
        </div>
    </div>
    <div class="formitems">
        <label class="fi-name">样式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="noticeStyle" value="1" <% if(content.noticeStyle==1){ %>checked<% } %> >样式一</label>
                <label><input type="radio" name="noticeStyle" value="2" <% if(content.noticeStyle==2){ %>checked<% } %> >样式二</label>
            </div>
        </div>
    </div>
    <div class="formitems">  
        <label class="fi-name">背景颜色：</label>
        <div class="form-controls">
            <div class="colorPicker colpck-bgColor" style="background-color:<%= content.bgColor %>">颜色选择</div>
            <span class="fi-help-text"></span>
        </div>
    </div>
    <div class="formitems">  
        <label class="fi-name">文字颜色：</label>
        <div class="form-controls">
            <div class="colorPicker colpck-fontColor" style="background-color:<%if(content.fontColor){%><%=content.fontColor%><%}else{%>#000<%}%>">颜色选择</div>
            <span class="fi-help-text"></span>
        </div>
    </div>
    <div class="formitems">
        <label class="fi-name">字体大小：</label>
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="fontSize" value="font12" <% if(content.fontSize=="font12"){ %>checked<% } %> >12px</label>
                <label><input type="radio" name="fontSize" value="font14" <% if(content.fontSize=="font14"){ %>checked<% } %> >14px</label>
                <label><input type="radio" name="fontSize" value="font16" <% if(content.fontSize=="font16"){ %>checked<% } %> >16px</label>
            </div>
        </div>
    </div>
    <div class="formitems">
        <label class="fi-name">模块上下边距：</label>
        <div class="form-controls">
            <div class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%= content.modulePadding%>px</span>
        </div>
    </div>
</script>

<!-- type16 notice end-->

<!-- type17 classify start-->
<script type="text/j-template" id="tpl_diy_con_type17">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">

            <section class="members_classify layoutstyle<%=content.layout%>">
                <div class="swiper-container  category<%=content.category%>" >
                    <% if(content.category=="0"||content.category == undefined){ %>

                    <ul class="clearfix" style="height:auto">
                        <% _.each(content.dataset,function(item){ %>
                        <li class="swiper-slide">
                            <a href="<%= item.link %>" class="colblue" style="background-color:<%= item.bgColor %>;">
                                <h3 style="color:<%=item.fotColor%>;"><%= item.showtitle %></h3>
                            </a>
                        </li>
                        <% }) %>				
                    </ul>
                    <div class="toggle"><div class="toggle_title" style="background-color:#28C192;color:#fff;">收起</div></div>


                    <%}else if(content.category=="1"){%>
                    <ul class="clearfix" style="height:auto">
                        <% _.each(content.dataset,function(item){ %>
                        <li class="swiper-slide">
                            <a href="<%= item.link %>" class="colblue">
                                <h3><%= item.showtitle %></h3>
                            </a>
                        </li>
                        <% }) %>				
                    </ul>
                    <div class="toggle"><div class="toggle_title" style="color:#1CA7F4;">收起</div></div>
                    <%}%>
                </div>
            </section>
        </div>

    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type17">
    <div class="formitems">
        <label class="fi-name">显示方式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="layout" value="0" <% if(content.layout=="0"||content.layout == undefined){ %>checked<% } %> >瀑布流</label>
                <label><input type="radio" name="layout" value="1" <% if(content.layout=="1"){ %>checked<% } %> >对齐</label>
            </div>
        </div>
    </div>
    <div class="formitems">
        <label class="fi-name">模块上下边距：</label>
        <div class="form-controls">
            <div class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%= content.modulePadding%>px</span>
        </div>
    </div>

    <div class="formitems">
        <label class="fi-name">样式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="category" value="0" <% if(content.category=="0"||content.category == undefined){ %>checked<% } %> >样式一</label>
                <label><input type="radio" name="category" value="1" <% if(content.category=="1"){ %>checked<% } %> >样式二</label>
            </div>
        </div>
    </div>

    <ul class="ctrl-item-list mgt10">
        <% _.each(content.dataset,function(item){ %>
        <li class="ctrl-item-list-li">
            <div class="formitems">  
                <label class="fi-name">链接到：</label>  
                <div class="form-controls">
                    <% if(item.linkType && item.linkType!=11){ %>
                    <a href="<%= item.link %>" target="_blank" class="badge badge-success" title="<%= item.title %>">
                        <span><%= HYD.linkType[item.linkType] %></span>
                        <em class="badge-link ovfEps"><%= item.title %></em>
                    </a>
                    <%}%>

                    <% if(item.linkType==11){ %>
                    <input type="text" name="customlink" class="input" value="<%= item.link %>">
                    <% } %>

                    <div class="droplist">
                        <a href="javascript:;" class="droplist-title j-droplist-toggle">
                            <% if(item.linkType==0){ %>
                            <span>请选择</span>
                            <%}else{%>
                            <span>修改</span>
                            <%}%>
                            <i class="gicon-chevron-down mgl5"></i>
                        </a>
                        <ul class="droplist-menu">
                            <li data-val="1"><a href="javascript:;"><%= HYD.linkType[1] %></a></li>
                            <li data-val="2"><a href="javascript:;"><%= HYD.linkType[2] %></a></li>
                            <li data-val="3"><a href="javascript:;"><%= HYD.linkType[3] %></a></li>
                            <li data-val="4"><a href="javascript:;"><%= HYD.linkType[4] %></a></li>
                            <li data-val="5"><a href="javascript:;"><%= HYD.linkType[5] %></a></li>
                            <li data-val="6"><a href="javascript:;"><%= HYD.linkType[6] %></a></li>
                            <li data-val="7"><a href="javascript:;"><%= HYD.linkType[7] %></a></li>
                            <li data-val="8"><a href="javascript:;"><%= HYD.linkType[8] %></a></li>
                            <li data-val="10"><a href="javascript:;"><%= HYD.linkType[10] %></a></li>
                            <li data-val="9"><a href="javascript:;"><%= HYD.linkType[9] %></a></li>
                            <li data-val="12"><a href="javascript:;"><%= HYD.linkType[12] %></a></li>
                            <li data-val="11"><a href="javascript:;"><%= HYD.linkType[11] %></a></li>
                            <li data-val="13"><a href="javascript:;"><%= HYD.linkType[13] %></a></li>
                        </ul>
                    </div>
                    <input type="hidden" class="j-verify" name="item_id" value="">
                    <span class="fi-help-text j-verify-linkType"></span>
                </div>
            </div>
            <div class="formitems">  
                <label class="fi-name">分类名称：</label>
                <div class="form-controls">
                    <input type="text" name="classify" class="input xlarge" value="<%= item.showtitle %>">
                </div>
            </div>
            <% if(content.category=="0"||content.category == undefined){ %>
            <div class="formitems">  
                <label class="fi-name">背景颜色：</label>
                <div class="form-controls">
                    <div class="colorPicker1" id="#j_clp_col_<%= item.cloPicker %>" data-name="col_<%= item.cloPicker %>" data-color="<%= item.bgColor %>" style="background-color:<%= item.bgColor %>">颜色选择</div>
                    <span class="fi-help-text"></span>
                </div>
            </div>
            <div class="formitems">  
                <label class="fi-name">文字颜色：</label>
                <div class="form-controls">
                    <div class="colorPicker1" id="#j_clp_col_<%= item.cloPicker %>" data-name="col_<%= item.cloPicker %>" data-color="<%= item.fotColor %>" style="background-color:<%= item.fotColor %>">颜色选择</div>
                    <span class="fi-help-text"></span>
                </div>
            </div> 
            <%}%>
            <div class="ctrl-item-list-actions">
                <a href="javascript:;" title="上移" class="j-moveup"><i class="gicon-arrow-up"></i></a>
                <a href="javascript:;" title="下移" class="j-movedown"><i class="gicon-arrow-down"></i></a>
                <a href="javascript:;" title="删除" class="j-del"><i class="gicon-remove"></i></a>
            </div>
        </li>
        <% }) %>
        <li class="ctrl-item-list-add" title="添加">+</li>
    </ul>  
</script>

<!-- type17 classify end-->

<!-- type18 wx_compose start-->
<script type="text/j-template" id="tpl_diy_con_type18">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">
            <div class="fulltext"><%= HYD.DIY.Unit.html_decode(content.fulltext) %></div>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type18">
    <div class="formitems">
        <label class="fi-name" style="width:84px;">模块上下边距：</label>
        <div class="form-controls" style="margin-left:94px;">
            <div id="slider" class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%=content.modulePadding%>px</span>
        </div>
    </div>

    <div class="formitems">
        <a href="javascript:;" class="btn btn-success select_temp J-edit-signtemp">编辑正文</a>
    </div>
</script>
<!-- type18 wx_compose end-->

<!-- type19 recommend_goods start-->
<script type="text/j-template" id="tpl_diy_con_type19">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">	
            <% if(content.layout==1){ %>
            <% if(content.goodstyle==1){ %>
            <section class="members_goodspic">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods,index){ %>
                    <li class="b_mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="100%">
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="100%">
                                <% } %> 
                            </a>
                            <% if(content.showIco || content.showPrice){ %>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>"><%= goods.title %></p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;<%= goods.original_price%></span></p>
                            <% } %>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl"><i class="smallsize">&yen;</i><%= goods.price%></span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                        </div>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl"><i class="smallsize">&yen;</i>1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl"><i class="smallsize">&yen;</i>1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl"><i class="smallsize">&yen;</i>1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView4.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl"><i class="smallsize">&yen;</i>1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                        </div>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } else if(content.goodstyle==2){ %>
            <section class="members_goodspic">
                <ul class="goodstyle2">
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods,index){ %>
                    <li class="b_mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="100%">
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="100%">
                                <% } %> 
                            </a>
                            <% if(content.showIco || content.showPrice){ %>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>"><%= goods.title %></p>
                            <% } %>
                            <em class="r-selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <p class="pic_box"><span class="yj">&yen;<%= goods.original_price%></span></p>
                            <% } %>
                            <p><span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;<%= goods.price%></span></p>
                            <a href="" class="addcart"><i></i></a>
                        </div>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>

                            <em class="r-selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p><span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;1.00</span></p>
                            <a href="" class="addcart"><i></i></a>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <em class="r-selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p><span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;1.00</span></p>
                            <a href="" class="addcart"><i></i></a>
                        </div>
                    </li>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <em class="r-selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p><span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;1.00</span></p>
                            <a href="" class="addcart"><i></i></a>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView4.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <em class="r-selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p><span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%>">&yen;1.00</span></p>
                            <a href="" class="addcart"><i></i></a>
                        </div>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } else if(content.goodstyle==3){ %>
            <section class="members_goodspic">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods,index){ %>
                    <li class="b_mingoods">
                        <div class="b_mingoods_wrapper">
                            <a href="<%= goods.link %>">
                                <% if(goods.is_compress){ %>
                                <img src="<%= goods.pic %>300x300" width="100%">
                                <% }else{ %>
                                <img src="<%= goods.pic %>" width="100%">
                                <% } %> 
                            </a>
                            <% if(content.showIco || content.showPrice){ %>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>"><%= goods.title %></p>
                            <% } %>

                            <p class="pic_box"><span class="yj">&yen;<%= goods.original_price%></span></p>
                            <% } %>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl">&yen;<%= goods.price%></span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                            <p class="goods-btn"><a href=""><%=content.goodstxt%></a></p>
                        </div>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl">&yen;1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                            <p class="goods-btn"><a href="">立即购买</a></p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl">&yen;1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                            <p class="goods-btn"><a href="">立即购买</a></p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_odd">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl">&yen;1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                            <p class="goods-btn"><a href="">立即购买</a></p>
                        </div>
                    </li>
                    <li class="b_mingoods goods_even">
                        <div class="b_mingoods_wrapper">
                            <a href="">
                                <img src="/Public/images/diy/goodsView4.jpg" width="100%" >
                            </a>
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <p class="goods-title <% if(content.titleLine == 1){ %>multiLine<% } %>">商品标题</p>
                            <% } %>
                            <p class="pic_box"><span class="yj">&yen;1.0</span></p>
                            <p>
                                <span class="goods-pirce <%if(content.priceBold==0){%>fwt_normal<%}%> fl">&yen;1.00</span>
                                <em class="r-selled-num fr"><strong><%=content.sale_num%></strong>件已售</em>
                            </p>
                            <p class="goods-btn"><a href="">立即购买</a></p>
                        </div>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } %>
            <% } else if(content.layout==2){ %>
            <% if(content.layoutstyles==1){ %>
            <section class="members_goodspic" style="margin-top:<%=content.modulePadding%>px;margin-bottom:<%=content.modulePadding%>px;">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods){ %>
                    <li class="biggoods">
                        <a class="goodsimg" href="<%= goods.link %>">
                            <% if(goods.is_compress){ %>
                            <img src="<%= goods.pic %>300x300" width="100%" >
                            <% }else{ %>
                            <img src="<%= goods.pic %>" width="100%" >
                            <% } %>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="<%= goods.link %>" class="<% if(content.titleLine == 1){ %>multiLine<% } %>"><%= goods.title %></a>
                            <% } %>
                            <span>
                                <% if(content.showIco){ %>
                                <i><a href="<%= goods.link %>"></a></i>
                                <% } %>
                                <% if(content.showPrice){ %>
                                &yen;<%= goods.price%>      
                                <span class="original_price">原价：<s>&yen;<%= goods.original_price%></s></span>
                                <% } %>
                            </span>

                        </section>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="biggoods">
                        <a class="goodsimg" href=""><img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="" class="<% if(content.titleLine == 1){ %>multiLine<% } %>">大图商品名称</a>
                            <% } %>
                            <span><i></i>&yen;780.00<span class="original_price">原价：<s>&yen;999</s></span></span>

                        </section>
                    </li>
                    <li class="biggoods">
                        <a class="goodsimg" href=""><img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="" class="<% if(content.titleLine == 1){ %>multiLine<% } %>">大图商品名称</a>
                            <% } %>
                            <span><i></i>&yen;780.00<span class="original_price">原价：<s>&yen;999</s></span></span>
                        </section>
                    </li>
                    <li class="biggoods">
                        <a class="goodsimg" href=""><img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="" class="<% if(content.titleLine == 1){ %>multiLine<% } %>">大图商品名称</a>
                            <% } %>
                            <span><i></i>&yen;780.00<span class="original_price">原价：<s>&yen;999</s></span></span>
                        </section>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% }else if(content.layoutstyles==2){ %>
            <section class="members_goodspic layoutstyles2" style="margin-top:<%=content.modulePadding%>px;margin-bottom:<%=content.modulePadding%>px;">
                <ul>
                    <% if (content.goodslist.length){ %>
                    <% _.each(content.goodslist,function(goods){ %>
                    <li class="lists_goods">
                        <a class="goodsimg fl" href="<%= goods.link %>">
                            <% if(goods.is_compress){ %>
                            <img src="<%= goods.pic %>300x300" width="100%" >
                            <% }else{ %>
                            <img src="<%= goods.pic %>" width="100%" >
                            <% } %>
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="<%= goods.link %>" class="multiLine"><%= goods.title %></a>
                            <% } %>
                            <span class="original_price"><s>&yen;<%= goods.original_price%></s></span>
                            <span>
                                <% if(content.showPrice){ %>
                                &yen;<%= goods.price%>
                                <% } %>
                            </span>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num fr">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </section>
                    </li>
                    <% }) %>
                    <% } else { %>
                    <li class="lists_goods">
                        <a class="goodsimg fl" href=""><img src="/Public/images/diy/goodsView1.jpg" width="100%" >
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="javascript:;" class="multiLine">列表商品名称，多行内容标题显示</a>
                            <% } %>
                            <span class="original_price"><s>&yen;999</s></span>

                            <span>&yen;780.00</span>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num fr">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>        
                        </section>
                    </li>
                    <li class="lists_goods">
                        <a class="goodsimg fl" href=""><img src="/Public/images/diy/goodsView2.jpg" width="100%" >
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="javascript:;" class="multiLine">列表商品名称，多行内容标题显示</a>
                            <% } %>
                            <span class="original_price">原价：<s>&yen;999</s></span>
                            <span>&yen;780.00</span>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num fr">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </section>
                    </li>
                    <li class="lists_goods">
                        <a class="goodsimg fl" href=""><img src="/Public/images/diy/goodsView3.jpg" width="100%" >
                        </a>
                        <section class="members_goodsimg_name rename clearfix">
                            <% if(content.showName == 1||content.showName === undefined){ %>
                            <a href="javascript:;" class="multiLine">列表商品名称，多行内容标题显示</a>
                            <% } %>
                            <span class="original_price">原价：<s>&yen;999</s></span>
                            <span>&yen;780.00</span>
                            <% if( content.sale_num > 0){ %>
                            <em class="selled-num fr">已售：<strong><%=content.sale_num%></strong></em>
                            <% } %>
                        </section>
                    </li>
                    <% } %>
                </ul>
            </section>
            <% } %>
            <% } %>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type19">
    <div class="formitems">
        <label class="fi-name">布局方式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="layout" value="1" <% if(content.layout==1){ %>checked<% } %> >双列商品</label>
                <label><input type="radio" name="layout" value="2" <% if(content.layout==2){ %>checked<% } %> >单列商品</label>
            </div>
        </div>
    </div>

    <% if(content.layout==1){ %>
    <div class="formitems">
        <label class="fi-name">样式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="goodstyle" value="1" <% if(content.goodstyle==1){ %>checked<% } %> >样式一</label>
                <label><input type="radio" name="goodstyle" value="2" <% if(content.goodstyle==2){ %>checked<% } %> >样式二</label>
                <label><input type="radio" name="goodstyle" value="3" <% if(content.goodstyle==3){ %>checked<% } %> >样式三</label>
            </div>
        </div>
    </div>
    <% if(content.goodstyle==3){ %>
    <div class="formitems">
        <label class="fi-name">按钮文本：</label>  
        <div class="form-controls">  
            <input type="text" name="goodstxt" class="input" value="<%= content.goodstxt %>">
            <span class="fi-help-text"></span>
        </div>
    </div>
    <% } %>
    <% } %>

    <% if(content.layout==2){ %>
    <div class="formitems">
        <label class="fi-name">样式：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="layoutstyles" value="1" <% if(content.layoutstyles==1){ %>checked<% } %> >样式一</label>
                <label><input type="radio" name="layoutstyles" value="2" <% if(content.layoutstyles==2){ %>checked<% } %> >样式二</label>
            </div>
        </div>
    </div>
    <% } %>	

    <div class="formitems">
        <label class="fi-name">是否显示标题：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="showName" value='1' <% if(content.showName == 1||content.showName===true){ %>checked<% } %> >显示</label>
                <label><input type="radio" name="showName" value='0' <% if(content.showName == 0||content.showName===false){ %>checked<% } %> >不显示</label>
                <label <% if(content.layoutstyles==2){ %>style="display:none" <% }%>><input type="checkbox" name="multiLine" <% if(content.titleLine == 1 ||content.titleLine===true){ %>checked<% } %> >多行显示
                </label>
            </div>
        </div>
    </div>

    <% if(content.layout==1){ %>
    <div class="formitems">
        <label class="fi-name">价格是否加粗：</label> 
        <div class="form-controls">
            <div class="radio-group">
                <label><input type="radio" name="priceBold" value='1' <% if(content.priceBold == 1 || typeof content.priceBold=="undefined"){ %>checked<% } %> >加粗</label>
                <label><input type="radio" name="priceBold" value='0' <% if(content.priceBold == 0){ %>checked<% } %> >不加粗</label>
            </div>
        </div>
    </div>
    <%}%>

    <div class="formitems">
        <label class="fi-name">模块上下边距：</label>
        <div class="form-controls">
            <div class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%=content.modulePadding%>px</span>
        </div>
    </div>

    <div style="padding:5px 0 5px 20px;">
        <a class="gicon-info-sign gicon_linkother" href="javascript:;" target="_blank"></a>
        提示：添加该模块后，分销商可以推荐商品到店铺首页
    </div>
</script>
<!-- type19 recommend_goods end-->

<!-- type20 Seckill goods start-->
<script type="text/j-template" id="tpl_diy_con_type20">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">
            <section class="act_Seckill_goods">
                <section class="act_count_down" data-endtime="">
                    <span>距离结束时间还剩</span>
                    <strong id="hour_show">00</strong> :
                    <strong id="minute_show">00</strong> :
                    <strong id="second_show">00</strong>                     
                </section>
            </section>
            <% if(content.goodslist.length) {%>
            <section class="act_img">
                <a href="<%= content.goodslist[0].link %>">
                    <% if(content.goodslist[0].is_compress){ %>
                    <img src="<%= content.goodslist[0].pic %>300x300" width="100%">
                    <% }else{ %>
                    <img src="<%= content.goodslist[0].pic %>" width="100%">
                    <% } %> 
                </a>
                <i class="act_status"><%= content.act_status%></i>
            </section>
            <section class="act_goods_info">
                <p class="title"><%= content.goodslist[0].title %></p>
                <p class="tip-txt mgb10">抢完恢复原价<%= content.goodslist[0].original_price%>元</p>
                <section class="act_info_bottom">
                    <span class="act_status_price"><%= content.act_status_price%></span>
                    <span class="act_price"><%= content.goodslist[0].price%></span>
                    <span class="act_ori_price">
                        <s><%= content.goodslist[0].original_price%>元</s>
                    </span>
                </section>	
            </section>
            <% } else {%>
            <section class="act_img">
                <a href="#">
                    <img src="/Public/images/diy/goodsView1.jpg" width="100%">
                </a>
                <i class="act_status"><%= content.act_status%></i>
            </section>
            <section class="act_goods_info">
                <p class="title">商品名称</p>
                <p class="tip-txt mgb10">抢完恢复原价0元</p>
                <section class="act_info_bottom">
                    <span class="act_status_price"><%= content.act_status_price%></span>
                    <span class="act_price">00</span>
                    <span class="act_ori_price">
                        <s>00元</s>
                    </span>
                </section>	
            </section>
            <% } %>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_type20">
    <div class="formitems">
        <label class="fi-name">活动状态：</label>  
        <div class="form-controls">  
            <input type="text" name="goods_status" class="input" value="<%= content.act_status %>">
            <span class="fi-help-text"></span>
        </div>
    </div>
    <div class="formitems">
        <label class="fi-name">活动文字：</label>  
        <div class="form-controls">  
            <input type="text" name="goods_status_price" class="input" value="<%= content.act_status_price %>">
            <span class="fi-help-text"></span>
        </div>
    </div>

    <div class="formitems">
        <label class="fi-name">选择商品：</label> 
        <div class="form-controls pdt5">
            <ul class="img-list clearfix">
                <% if (content.goodslist.length){ %>
                <% _.each(content.goodslist,function(goods,index){ %>
                <li class="j-addgoods" data-item="<%= goods.item_id %>">
                    <a href="<%= goods.link %>" target="_blank">
                        <span class="img-list-btndel j-delgoods"><i class="gicon-trash white"></i></span>
                        <span class="img-list-overlay"></span>
                        <% if(goods.is_compress){ %>
                        <img src="<%= goods.pic %>80x80">
                        <% }else{ %>
                        <img src="<%= goods.pic %>">
                        <% } %>
                    </a>
                </li>
                <% }) %>
                <% } else {%>
                <li class="img-list-add j-addgoods">+</li>
                <% } %>
            </ul>
            <input type="hidden" value="" class="j-verify"><span class="fi-help-text"></span>
        </div>
    </div>

    <div class="formitems">
        <label class="fi-name">模块上下边距：</label>
        <div class="form-controls">
            <div id="slider" class="fl diy-slider j-slider"></div>
            <span class="fl mgl10 mgt5 ftsize14 j-ctrl-showheight"><%=content.modulePadding%>px</span>
        </div>
    </div>
</script>
<!-- type20 Seckill goods end-->
<!-- type coupon_pack start-->
<script type="text/j-template" id="tpl_diy_con_typecoupon_pack">
    <div class="members_con">
        <div class="modulePadding" style="padding-top:<%=content.modulePadding%>px;padding-bottom:<%=content.modulePadding%>px;">
            <section class="coupons_con" style="padding-bottom:0px">
                <ul>
                    <li style="display: list-item;">
                        <section class="coupons_conbox g-box" style="margin:5px 0px;">
                            <section class="coupons_conbox_le"></section>
                            <section class="coupons_conbox_ri g-flex" >						
                                <h1 style="margin-top: 20px;">&yen;<span><%= content.price %></span></h1>
                                <b><%= content.title %></b>
                            </section>
                        </section>
                    </li>
                </ul>
            </section>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_diy_ctrl_typecoupon_pack">
    <div class="formitems">  
        <label class="fi-name"><span class="colorRed">*</span>选择优惠券：</label>  
        <div class="form-controls">  
            <select  class="select coupon_select j-select">
                <option  class="acquiesce" value="0" data-title="请选择" data-price="0" data-couponid="0">请选择</option>
                <% _.each(coupon_arr_select,function(item){ %>
                <option   value="<%=item.coupon_id%>" data-title="<%=item.title%>" data-price="<%=item.value%>" data-couponid="<%=item.coupon_id%>" <%if(item.coupon_id==content.couponid){%>
                          selected
                          <%}%>
                          ><%=item.title%></option>
                <%})%>
            </select>
            <span class="fi-help-text"></span>
        </div>  
    </div>
    <div class="formitems">  
        <label class="fi-name"><span class="colorRed">*</span>发放数量：</label>  
        <div class="form-controls">  
            <input type="text" name="coupon_number" value="<%=content.coupon_number%>" class="input mini coupon_number j-render j-coupon_number">
            <span>张</span>
            <span class="fi-help-text"></span>
        </div>  
    </div>
</script>


<!-- typecoupon_pack end-->


<!--start ImgPicker -->
<script type="text/j-template" id="tpl_popbox_ImgPicker">
    <div id="ImgPicker">
        <div class="tabs clearfix">    
            <a href="javascript:;" class="active tabs_a fl" data-origin="imgpicker" data-index="1">选择图片</a>    
            <a href="javascript:;" class="tabs_a fl j-initupload" data-origin="imgpicker" data-index="2">上传新图片</a>       
        </div>  
        <!-- end tabs-->
        <div class="tabs-content" data-origin="imgpicker">    
            <div class="tc" data-index="1">    
                <ul class="img-list imgpicker-list clearfix"></ul>
                <!-- end img-list -->
                <div class="imgpicker-actionPanel clearfix">
                    <div class="fl">
                        <a href="javascript:;" class="btn btn-primary" id="j-btn-listuse">使用选中图片</a>
                    </div>
                    <div class="fr">
                        <div class="paginate"></div>
                    </div>
                </div>
                <!-- end imgpicker-actionPanel -->
            </div>    

            <div class="tc hide" data-index="2">
                <div class="uploadifyPanel clearfix">
                    <ul class="img-list imgpicker-upload-preview"></ul>
                    <input type="file" name="imgpicker_upload_input" id="imgpicker_upload_input">
                </div>

                <div class="imgpicker-actionPanel">
                    <a href="javascript:;" class="btn btn-primary" id="j-btn-uploaduse">使用上传的图片</a>
                </div>
                <!-- end imgpicker-actionPanel -->
            </div>      
        </div>
        <!-- end tabs-content -->
    </div>
</script>

<script type="text/j-template" id="tpl_popbox_ImgPicker_listItem">
    <% _.each(dataset,function(url){ %>
    <li>
        <span class="img-list-overlay"><i class="img-list-overlay-check"></i></span>
        <img src="<%= url %>">
    </li>
    <% }) %>
</script>

<script type="text/j-template" id="tpl_popbox_ImgPicker_uploadPrvItem">
    <li>
        <span class="img-list-btndel j-imgpicker-upload-btndel"><i class="gicon-trash white"></i></span>
        <span class="img-list-overlay"></span>
        <img src="<%= url %>">
    </li>
</script>
<!-- end ImgPicker -->

<!-- start ModulePicker -->
<script type="text/j-template" id="tpl_popbox_ModulePicker">
    <div id="ModulePicker">
        <ul class="modulePicker-list"></ul>
        <div class="clearfix mgt10">
            <div class="paginate fr"></div>
        </div>
    </div>
</script>

<script type="text/j-template" id="tpl_popbox_ModulePicker_item">
    <% _.each(dataset,function(data){%>
    <li class="clearfix">
        <a href="<%= data.link %>" target="_blank" class="modulePicker-list-title fl ovfEps a_hover" title="<%= data.title %>"><%= data.title %></a>
        <a href="javascript:;" class="btn btn-primary btn-small fr j-select">选取</a>
    </li>
    <% }) %>
</script>
<!-- end ModulePicker -->

<!-- start GoodsAndGroupPicker -->
<script type="text/j-template" id="tpl_popbox_GoodsAndGroupPicker">
    <div id="GoodsAndGroupPicker">
        <div class="tabs clearfix">  
            <a href="javascript:;" class="active tabs_a fl" data-origin="goodsandgroup" data-index="1">商品</a>  
            <a href="javascript:;" class="tabs_a fl j-tab-group" data-origin="goodsandgroup" data-index="2">商品分组</a>  
        </div>
        <!-- end tabs -->  
        <div class="tabs-content" data-origin="goodsandgroup">  
            <div class="tc" data-index="1">  
                <ul class="gagp-goodslist"></ul>
                <div class="clearfix mgt10">
                    <div class="fl">
                        <a href="javascript:;" class="btn btn-primary j-btn-goodsuse">确定使用</a>
                    </div>
                    <div class="paginate fr"></div>
                </div>
            </div>  
            <div class="tc hide" data-index="2">  
                <ul class="gagp-grouplist"></ul>
                <div class="clearfix mgt10">
                    <div class="paginate fr"></div>
                </div>  
            </div>  
        </div>
    </div>	
</script>

<script type="text/j-template" id="tpl_popbox_GoodsAndGroupPicker_goodsitem">
    <% _.each(dataset,function(data){%>
    <li class="clearfix" data-item="<%= data.item_id %>">
        <a href="<%= data.link %>" class="fl" target="_blank" title="<%= data.title %>">
            <div class="table-item-img">
                <% if(data.is_compress){ %>
                <img src="<%= data.pic %>80x80" alt="<%= data.title %>">
                <% }else{ %>
                <img src="<%= data.pic %>" alt="<%= data.title %>">
                <% } %>
            </div>
            <div class="table-item-info">
                <p><%= data.title %></p>
                <span class="price">&yen;<%= data.price %></span>
            </div>
        </a>
        <a href="javascript:;" class="btn fr j-select mgt15 mgr15">选取</a>
    </li>
    <% }) %>
</script>

<script type="text/j-template" id="tpl_popbox_GoodsAndGroupPicker_groupitem">
    <% _.each(dataset,function(data){%>
    <li class="clearfix" data-group="<%= data.group_id %>">
        <a href="<%= data.link %>" class="fl a_hover" target="_blank" title="<%= data.title %>"><%= data.title %></a>
        <a href="javascript:;" class="btn fr j-select">选取</a>
    </li>
    <% }) %>
</script>
<!-- end GoodsAndGroupPicker -->

<!-- start MgzAndMgzCate -->
<script type="text/j-template" id="tpl_popbox_MgzAndMgzCate">
    <div id="MgzAndMgzCate">
        <div class="tabs clearfix">  
            <a href="javascript:;" class="active tabs_a fl" data-origin="MgzAndMgzCate" data-index="1">文章页面</a>
            <a href="javascript:;" class="tabs_a fl j-tab-mgzcate" data-origin="MgzAndMgzCate" data-index="2">页面分类</a>  
        </div>
        <!-- end tabs -->  
        <div class="tabs-content" data-origin="MgzAndMgzCate">  
            <div class="tc" data-index="1">  
                <ul class="mgz-list mgz-list-panel1"></ul>
                <div class="clearfix mgt10">
                    <div class="paginate fr"></div>
                </div>
            </div>
            <div class="tc hide" data-index="2">  
                <ul class="mgz-list mgz-list-panel2"></ul>
                <div class="clearfix mgt10">
                    <div class="fl">
                        <a href="javascript:;" class="btn btn-primary j-btn-use">确定使用</a>
                    </div>
                    <div class="paginate fr"></div>
                </div>
            </div>
        </div>
    </div>	
</script>

<script type="text/j-template" id="tpl_popbox_MgzAndMgzCate_item">
    <% _.each(dataset,function(data){%>
    <li class="clearfix">
        <a href="<%= data.link %>" class="fl a_hover" target="_blank" title="<%= data.title %>"><%= data.title %></a>
        <a href="javascript:;" class="btn fr j-select">选取</a>
    </li>
    <% }) %>
</script>
<!-- end MgzAndMgzCate -->

<!-- start GamePicker -->
<script type="text/j-template" id="tpl_popbox_GamePicker">
    <div id="GamePicker">
        <div class="tabs clearfix">  
            <a href="javascript:;" class="active tabs_a fl" data-origin="GamePicker" data-index="1">幸运大抽奖</a>  
            <a href="javascript:;" class="tabs_a fl j-tab-game" data-origin="GamePicker" data-index="2">疯狂砸金蛋</a>  
            <a href="javascript:;" class="tabs_a fl j-tab-game" data-origin="GamePicker" data-index="3">好运翻翻看</a>  
            <a href="javascript:;" class="tabs_a fl j-tab-game" data-origin="GamePicker" data-index="4">骰子大王</a>  
        </div>
        <!-- end tabs -->  
        <div class="tabs-content" data-origin="GamePicker">  
            <div class="tc" data-index="1">  
                <ul class="game-list game-list-panel1"></ul>
                <div class="clearfix mgt10">
                    <div class="paginate fr"></div>
                </div>
            </div>
            <div class="tc hide" data-index="2">  
                <ul class="game-list game-list-panel2"></ul>
                <div class="clearfix mgt10">
                    <div class="paginate fr"></div>
                </div>
            </div>
            <div class="tc hide" data-index="3">  
                <ul class="game-list game-list-panel3"></ul>
                <div class="clearfix mgt10">
                    <div class="paginate fr"></div>
                </div>
            </div>
            <div class="tc hide" data-index="4">  
                <ul class="game-list game-list-panel4"></ul>
                <div class="clearfix mgt10">
                    <div class="paginate fr"></div>
                </div>
            </div>
        </div>
    </div>	
</script>

<script type="text/j-template" id="tpl_popbox_GamePicker_item">
    <% _.each(dataset,function(data){%>
    <li class="clearfix">
        <a href="<%= data.link %>" class="fl a_hover" target="_blank" title="<%= data.title %>"><%= data.title %></a>
        <a href="javascript:;" class="btn fr j-select">选取</a>
    </li>
    <% }) %>
</script>
<!-- end GamePicker -->

<script type="text/j-template" id="tpl_albums_main">
    <div id="albums">
        <div class="albums-title clearfix">
            <span class="fl">我的图库</span>
            <a href="javascript:;" class="fr" id="j-close" title="关闭"><i class="gicon-remove"></i></a>
        </div>
        <div class="albums-container clearfix">
            <div class="albums-cl fl">
                <div class="albums-cl-actions">
                    <a href="javascript:;" id="j-addFolder"><i class="gicon-plus"></i><span>添加</span></a>
                    <a href="javascript:;" id="j-renameFolder"><i class="gicon-pencil"></i><span>重命名</span></a>
                    <a href="javascript:;" id="j-delFolder"><i class="gicon-trash"></i><span>删除</span></a>
                </div>
                <div class="albums-cl-tree" id="j-panelTree">
                    <p class="txtCenter pdt10 loading j-loading"><i class="icon-loading"></i></p>
                </div>
            </div>
            <div class="albums-cr fl">
                <div class="albums-cr-actions">
                    <!-- <a href="javascript:;" class="btn btn-success" ><input type="file" name="imgpicker_upload_input" id="j-addImg" style="opacity: 0;
            width:10px;">上传图片</a> -->

                    <!-- <a href="javascript:;" id="j-addImg" class="btn btn-primary mgl10">上传图片</a> -->
                    <a href="javascript:;" id="addImg_load" style="position:relitive;"><span class="addImg_load_text"></span><input type="file" name="imgpicker_upload_input" id="j-addImg" style="opacity: 0;width:100%;position:absolute;top:5px;left:0;"></a>
                    <a href="javascript:;" id="j-moveImg" class="btn btn-primary mgl10">移动图片到</a>
                    <a href="javascript:;" id="j-cateImg" class="btn btn-primary mgl5">移动分类到</a>
                    <a href="javascript:;" id="j-delImg" class="btn btn-danger mgl5">删除所选图片</a>
                    <input type="text" placeholder="请输入图片名称" style="width: 210px;padding:6px;vertical-align: 0;border-radius: 2px;border: 1px solid #ccc;"><a href="javascript:;" id="j-delImg" class="btn btn-primary mgl10 searchImg">搜索</a>
                </div>
                <div class="albums-cr-imgs" id="j-panelImgs">
                    <p class="txtCenter pdt10 loading j-loading"><i class="icon-loading"></i></p>
                </div>
                <div class="albums-cr-ctrls clearfix">
                    <a href="javascript:;" id="j-useImg" class="btn btn-primary fl">使用选中的图片</a>
                    <div class="paginate fr" id="j-panelPaginate"></div>
                </div>
            </div>
        </div>
    </div>
</script>
<!-- end tpl_albums_main -->

<script type="text/j-template" id="tpl_albums_overlay">
    <div id="albums-overlay"></div>
</script>
<!-- end tpl_albums_overlay -->

<script type="text/j-template" id="tpl_albums_tree">
    <dl class="j-albumsNodes">
        <dt data-id="-1" data-add="1" data-rename="0" data-del="0">
        <i class="icon-folder open"></i>
        <span class="j-treeShowTxt"><em class="j-name">所有图片</em>(<em class="j-num"><%=dataset.total%></em>)</span>
        </dt>
        <dd><%=nodes%></dd>
    </dl>
</script>
<!-- end tpl_albums_tree -->

<script type="text/j-template" id="tpl_albums_tree_fn">
    <% _.each(dataset,function(item){%>
    <%if(item.parent_id==0 || item.id==0){%>
    <dl>
        <%}else{%>
        <dl style="display:none;">
            <%}%>
            <%if(item.id==0){%>
            <dt data-id="<%=item.id%>" data-add="0" data-rename="0" data-del="0">
            <%}else{%>
            <dt data-id="<%=item.id%>" data-add="1" data-rename="1" data-del="1">
            <%}%>
            <i class="icon-folder"></i>
            <span class="j-treeShowTxt"><em class="j-name"><%=item.name%></em>(<em class="j-num"><%=item.picNum%></em>)</span>
            <%if(item.id!=0){%>
            <input type="text" class="ipt j-ip" maxlength="10" value="<%=item.name%>"><i class="icon-loading j-loading"></i>
            <%}%>
            </dt>
            <dd></dd>
        </dl>
        <%})%>
    </script>

    <script type="text/j-template" id="tpl_albums_delFolder">
        <div>
            <p class="ftsize14 bold">删除该文件夹同时会删除其子文件夹，是否继续？</p>
            <div class="radio-group mgt5">
                <label><input type="radio" name="isDelImgs" value="1" checked>不删除图片</label>
                <label><input type="radio" name="isDelImgs" value="2">同时删除图片</label>
            </div>
        </div>
    </script>
    <!-- end tpl_albums_delFolder -->

    <script type="text/j-template" id="tpl_albums_imgs">
        <%if(dataset){%>
        <ul class="clearfix">

            <% _.each(dataset,function(item,index){ %>
            <li class="fl" data-id="<%=item.id%>">
                <img src="<%=item.file%>">
                <div class="albums-cr-imgs-selected"><i></i></div>
                <div class="albums-edit">
                    <span><i class="gicon-pencil edit-img-name"></span></i>
                    <p><%=item.name%></p>
                    <div class="img-name-edit">
                        <input type="text" value="<%=item.name%>" style="width:60%;" name="rename" class="file_name"/>
                        <a href="javascript:;" class="renameImg">确定</a>
                    </div>
                </div>
            </li>
            <% }) %>
        </ul>
        <%}else{%>
        <p class="albums-cr-imgs-noPic j-noPic">暂无图片</p>
        <%}%>
    </script>
    <!-- end tpl_albums_imgs -->

    <script type="text/j-template" id="tpl_popup_selectGoods">
        <div>
            <input type="text" name="title" placeholder="请输入商品关键词" class="input xlarge" value="<%=formdata.title || ""%>">
                   <select name="status" class="select">  
                <option value="-1" <%if(formdata.status==-1){%>selected<%}%>>在售中</option>  
                <option value="3" <%if(formdata.status==3){%>selected<%}%>>仓库中</option>  
            </select>
            <select name="class_id" class="select small newselect">
                <option value="-1" selected>所有分类</option>
                <option value="0" <% if (formdata.class_id === 0 ){ %>selected<% } %>>未分类</option>
                <% if(classlists.length){ %>
                <% _.each(classlists,function(item){ %>
                <option value="<%= item.class_id %>" <% if (formdata.class_id  == item.class_id){ %>selected<% } %>><% if (item.temp){ %><%= item.temp %><% } %><%= item.class_name%></option>     
                <% }) %>
                <% } %>
            </select>
            <a href="javascript:;" class="btn btn-primary j-search"><i class="gicon-search white"></i>查询</a>
        </div>

        <table class="wxtables mgt10 table-selectGoods">
            <colgroup>
                <col width="5%">
                <col width="28%">
                <col width="5%">
                <col width="28%">
                <col width="5%">
                <col width="28%">
            </colgroup>
            <thead>
                <tr>
                    <td></td>
                    <td>商品</td>
                    <td></td>
                    <td>商品</td>
                    <td></td>
                    <td>商品</td>
                </tr>
            </thead>
            <tbody>
                <% if(dataset.length){ %>
                <tr>
                    <% _.each(dataset,function(item,index){ %>
                    <td class="txtCenter">
                        <%if(selectIds.indexOf(item.item_id)<0){%>
                        <%
                        var isSelected=false;
                        if(curPageCache && curPageCache.ids.join(",").indexOf(item.item_id)>=0){
                        isSelected=true;
                        }
                        %>
                        <a href="javascript:;" class="icon-select j-select <%if(isSelected){%>cur<%}%>" data-index="<%=index%>"></a>
                        <input type="checkbox" class="j-chkbox" data-index="<%=index%>" data-itemid="<%= item.item_id %>" style="display:none;" <%if(isSelected){%>checked<%}%>>
                               <%}%>
                    </td>
                    <td style="border-right: 1px solid #e7e7eb;">
                        <a href="<%= item.link %>" class="block" target="_blank" title="<%= item.title %>">
                            <div class="table-item-img">
                                <img src="<%= item.pic %><%if(item.is_compress){%>80x80<%}%>" alt="<%= item.title %>">
                            </div>
                            <div class="table-item-info">
                                <p><%= item.title %></p>
                                <span class="price">现价 &yen;<%= item.price %></span>
                                <%if(selectIds.indexOf(item.item_id)>=0){%>
                                <div class="label">已选择该商品</div>
                                <%}%>
                            </div>
                        </a>
                    </td>
                    <% if((index+1)%3==0){%>
                </tr><tr>
                    <%}%>
                    <% }) %>
                </tr>
                <% }else{ %>
                <tr><td colspan="6" class="txtCenter">暂无数据</td></tr>
                <% } %>
            </tbody>
        </table>

        <div class="mgt15 clearfix">
            <%if(selectMod==2){%> 
            <div class="fl">  
                <a href="javascript:;" class="btn btn-primary j-selectAll">全选</a>
                <a href="javascript:;" class="btn btn-primary j-selectReverse">反选</a>
                <a href="javascript:;" class="btn btn-primary j-cancelSelectAll">取消全选</a>
                <a href="javascript:;" class="btn btn-success j-use">使用选中的商品</a>
            </div> 
            <%}%>
            <div class="fr paginate"><%= page %></div>
            <!-- end paginate --> 
        </div>  
        <!-- end tables-btmctrl -->
    </script>
    <!-- end tpl_item_importTable -->

    <script type="text/j-template" id="tpl_popup_selectBackups">
        <div class="Backups_list">	
            <ul>	
                <% if(lists.length){ %>
                <% _.each(lists,function(item){ %>
                <li>
                    <h2 class="J-rename" data-id="<%= item.page_design_id %>"><%= item.name %><i class="edit-rename J-edit-rename"></i></h2>
                    <p><%= item.add_time %></p>
                    <div class="edit_Backups_action">
                        <a href="<%= item.link %>" class="btn btn-success J-getData" data-id="<%= item.page_design_id %>">读取</a>
                        <a href="javascript:;" class="btn btn-danger J-delData" data-id="<%= item.page_design_id %>">删除</a>
                    </div>
                </li>
                <% }) %>			
                <% } else { %>
                <div class="J_noData" style="line-height:50px; text-align:center;font-size:18px;color:#ccc;">无备份数据</div>
                <% } %>
            </ul>
            <div class="add_Backups_action">
                <a href="javascript:;" class="add_Backups btn btn-primary J_add_Backups">新增备份</a>
            </div>
        </div>
    </script>

    <script type="text/j-template" id="tpl_popup_addBackups">
        <li>
            <h2 class="J-rename" data-id="<%= page_design_id %>"><%= name %><i class="edit-rename J-edit-rename"></i></h2>
            <p><%= add_time %></p>
            <div class="edit_Backups_action">
                <a href="<%= link %>" class="btn btn-success J-getData" data-id="<%= page_design_id %>">读取</a>
                <a href="javascript:;" class="btn btn-danger J-delData" data-id="<%= page_design_id %>">删除</a>
            </div>
        </li>
    </script>
    <!-- end tpl_popup_selectBackups-->
    <script type="text/j-template" id="icon_imgPicker">
        <div id="icon-container">
            <div class="albums-title clearfix">
                <span class="fl">选择图片</span>
                <a href="javascript:;" class="fr" id="Jclose" title="关闭">
                    <i class="gicon-remove"></i>
                </a>
            </div>
            <div class="albums-container">
                <div class="albums-cr-actions noborder">
                    <a href="javascript:;" data-style="style1" class="btn btn-primary mgl10 cur">风格一<i></i></a>
                    <a href="javascript:;" data-style="style2" class="btn btn-primary mgl10">风格二<i></i></a>
                    <a href="javascript:;" data-style="style3" class="btn btn-primary mgl10">风格三<i></i></a>
                </div>
                <div class="albums-color-tab">
                    <h2><a href="javascript:;" class="btn btn-primary mgl10">选择颜色</a><span>(小图标下面的文字仅供参考,背景色可自行修改)</span></h2>
                    <ul class="clearfix">
                        <li data-color="color0"><span class="color color0"></span><span>黑色</span></li>
                        <li data-color="color1"><span class="color color1"></span><span>白色</span></li>
                        <li data-color="color2"><span class="color color2"></span><span>灰色</span></li>
                        <li data-color="color3"><span class="color color3"></span><span>红色</span></li>
                        <li data-color="color4"><span class="color color4"></span><span>黄色</span></li>
                        <li data-color="color5"><span class="color color6"></span><span>蓝色</span></li>
                        <li data-color="color6"><span class="color color5"></span><span>绿色</span></li>
                        <li data-color="color7"><span class="color color7"></span><span>紫色</span></li>
                        <li data-color="color8"><span class="color color8"></span><span>橙色</span></li>
                    </ul>
                </div>
                <div class="albums-icon-tab"></div>
                <div class="albums-cr-ctrls clearfix">
                    <a href="javascript:;" id="j-useIcon" class="btn btn-primary fl">使用选中的图片</a>
                </div>
            </div>
        </div>
    </script>
    <script type="text/j-template" id="icon_imglist">
        <ul class="clearfix">
            <% _.each(data,function(item){ %>
            <li><img src="<%= item %>" width="80" alt=""><span><i></i></span></li>
            <% }) %>
        </ul>
    </script>

    <!-- Navigation tpl start-->
    <script type="text/j-template" id="tpl_diy_con_typeNavigation">
        <div class="navPanel">
            <section class="nav">
                <div class="inner clearfix">
                    <!--a href="javascript:history.go(-1);" class="nav-back fl"></a-->
                    <section class="nav-lists hasmenu<%= content.dataset.length %> fl clearfix">
                        <% _.each(content.dataset,function(item){ %>
                        <% if(item.subNav.length){ %>
                        <dl class="nav-item fl j-showNavSub wid<%=content.dataset.length%> style<%=content.style%>">
                            <dt><a href="javascript:;" style="<% if(content.style == 1){ %>background-color:<%= item.bgColor %>;color:<%= item.fotColor %><% } %>"><% if(content.style == 1){ %><img src="<%= item.icon %>" width="25" alt=""><h2><%= item.showtitle %></h2><% }else{ %><%= item.showtitle %><% } %></a></dt>
                            <dd class="nav-item-sub">
                                <% _.each(item.subNav,function(subitem){%>
                                <a href="<%= subitem.link %>" target="_blank"><%= subitem.showtitle %></a>
                                <% }) %>
                            </dd>
                        </dl>
                        <% }else{ %>
                        <dl class="nav-item fl j-showNavSub wid<%=content.dataset.length%> style<%=content.style%>">
                            <dt><a href="<%= item.link %>" target="_blank" style="<% if(content.style == 1){ %>background-color:<%= item.bgColor %>;color:<%= item.fotColor %><% } %>"><% if(content.style == 1){ %><img src="<%= item.icon %>" width="25" alt=""><h2><%= item.showtitle %></h2><% }else{ %><%= item.showtitle %><% } %></a></dt>
                        </dl>
                        <% } %>
                        <% }) %>
                    </section>
                </div>
            </section>
        </div>
    </script>

    <script type="text/j-template" id="tpl_diy_ctrl_typeNavigation">
        <div class="navCtrlPanel pdd10">
            <p>在以下页面显示导航：</p>
            <div class="checkbox-group mgt10">
                <label><input type="checkbox" name="showInhome" <% if(content.showInhome){ %>checked<% } %> >防伪页面</label>
                <!--<label><input type="checkbox" name="showInuser" <% if(content.showInuser){ %>checked<% } %> >会员主页</label>-->
                <label><input type="checkbox" name="showIncustom" <% if(content.showIncustom){ %>checked<% } %> >文章页面</label>
                <label><input type="checkbox" name="showIngoodslist" <% if(content.showIngoodslist){ %>checked<% } %> >商品列表页</label>
            </div>
        </div>
        <!--<div class="navCtrlPanel pdd10 mgt10">
            <p>在以下页面显示导航类型：</p>
            <div class="checkbox-group mgt10">
                <label><input type="radio" name="showstyle" value="0" <% if(content.style == 0){ %>checked<% } %> >纯文字导航</label>
                <label><input type="radio" name="showstyle" value="1" <% if(content.style == 1){ %>checked<% } %> >小图标导航</label>
            </div>
        </div>-->
        <div class="navCtrlPanel navCtrlPanel-navlist mgt10 clearfix">
            <ul class="navCtrlPanel-left np-left-navlist fl">
                <li class="j-addNav txtCenter navlist-addnav"><i class="gicon-plus"></i></li>
                <% _.each(content.dataset,function(item,index){ %>
                <li>
                    <dl>
                        <dt class="clearfix <% if(content.curMainindex>=0 && content.curSubindex<0 && content.curMainindex==index){%>selected<%}%>">
                        <span class="fl"><%= item.showtitle %></span>
                        <span class="fr">
                            <i class="j-addSubNav gicon-plus"></i>
                            <i class="j-delNav gicon-trash"></i>
                        </span>
                        <div class="ctrl-item-list-actions li-position">
                            <a href="javascript:;" title="上移" class="j-moveup"><i class="gicon-arrow-up"></i></a>
                            <a href="javascript:;" title="下移" class="j-movedown"><i class="gicon-arrow-down"></i></a>
                        </div>
                        </dt>
                        <% _.each(item.subNav,function(subitem,subIndex){ %>
                        <dd class="clearfix <% if(content.curMainindex==index && content.curSubindex==subIndex){%>selected<%}%>">
                            <span class="fl"><%= subitem.showtitle %></span>
                            <span class="fr">
                                <i class="j-delSubNav gicon-trash"></i>
                            </span>
                            <div class="ctrl-item-list-actions dd-position">
                                <a href="javascript:;" title="上移" class="j-dd-moveup"><i class="gicon-arrow-up"></i></a>
                                <a href="javascript:;" title="下移" class="j-dd-movedown"><i class="gicon-arrow-down"></i></a>
                            </div>
                        </dd>
                        <% }) %>
                    </dl>
                </li>
                <% }) %>
            </ul>
            <% if(content.curMainindex!=-1){ %>
            <div class="navCtrlPanel-right fl">
                <% if(content.curMainindex>=0 && content.curSubindex<0){ %>
                <% var item=content.dataset[content.curMainindex] %>
                <% }else if(content.curMainindex>=0 && content.curSubindex>=0){ %>
                <% var item=content.dataset[content.curMainindex].subNav[content.curSubindex] %>
                <% } %>
                <div class="formitems">  
                    <label class="fi-name">链接到：</label>  
                    <div class="form-controls">
                        <% if(item.linkType && item.linkType!=11){ %>
                        <a href="<%= item.link %>" target="_blank" class="badge badge-success" title="<%= item.title %>">
                            <span><%= HYD.linkType[item.linkType] %></span>
                            <em class="badge-link ovfEps"><%= item.title %></em>
                        </a>
                        <% } %>

                        <% if(item.linkType==11){ %>
                        <input type="text" name="customlink" class="input" value="<%= item.link %>">
                        <% } %>

                        <div class="droplist j-navDplist">
                            <a href="javascript:;" class="droplist-title j-droplist-toggle">
                                <% if(item.linkType==0){ %>
                                <span>请选择</span>
                                <%}else{%>
                                <span>修改</span>
                                <%}%>
                                <i class="gicon-chevron-down mgl5"></i>
                            </a>
                            <ul class="droplist-menu">
                                <li data-val="1"><a href="javascript:;"><%= HYD.linkType[1] %></a></li>
                                <li data-val="2"><a href="javascript:;"><%= HYD.linkType[2] %></a></li>
                                <li data-val="3"><a href="javascript:;"><%= HYD.linkType[3] %></a></li>
                                <li data-val="4"><a href="javascript:;"><%= HYD.linkType[4] %></a></li>
                                <li data-val="5"><a href="javascript:;"><%= HYD.linkType[5] %></a></li>
                                <li data-val="6"><a href="javascript:;"><%= HYD.linkType[6] %></a></li>
                                <li data-val="7"><a href="javascript:;"><%= HYD.linkType[7] %></a></li>
                                <li data-val="8"><a href="javascript:;"><%= HYD.linkType[8] %></a></li>
                                <li data-val="10"><a href="javascript:;"><%= HYD.linkType[10] %></a></li>
                                <li data-val="9"><a href="javascript:;"><%= HYD.linkType[9] %></a></li>
                                <li data-val="12"><a href="javascript:;"><%= HYD.linkType[12] %></a></li>
                                <li data-val="11"><a href="javascript:;"><%= HYD.linkType[11] %></a></li>
                            </ul>
                        </div>
                        <input type="hidden" class="j-verify" name="item_id" value="">
                        <span class="fi-help-text j-verify-linkType"></span>
                    </div>
                </div>
                <% if(content.curMainindex>=0 && content.curSubindex<0 && content.style == 1){ %>
                <div class="formitems">  
                    <label class="fi-name">小图标：</label>
                    <div class="form-controls">
                        <div class="header_style2_dataset_pic inline-block">
                            <img src="<%= item.icon %>" width="30">
                        </div>
                        <a href="javascript:;" class="btn btn-primary btn-small j-navModifyIcon">修改</a>
                        <a href="javascript:;" class="btn btn-primary btn-small j-uploadIcon">上传</a>
                        <span class="fi-help-text">建议尺寸：60 * 60 像素</span>
                    </div>
                </div>
                <% } %>
                <% if(content.curMainindex>=0 && content.curSubindex<0 &&content.style == 1){ %>
                <div class="formitems">  
                    <label class="fi-name">背景颜色：</label>
                    <div class="form-controls">
                        <div class="colorPicker" id="#j_clp_col_<%= item.cloPicker %>" data-name="col_<%= item.cloPicker %>" data-color="<%= item.bgColor %>" style="background-color:<%= item.bgColor %>">颜色选择</div>
                        <span class="fi-help-text"></span>
                    </div>
                </div>
                <div class="formitems">  
                    <label class="fi-name">文字颜色：</label>
                    <div class="form-controls">
                        <div class="colorPicker" id="#j_fot_col_<%= item.cloPicker %>" data-name="fot_<%= item.cloPicker %>" data-color="<%= item.fotColor %>" style="background-color:<%= item.fotColor %>">颜色选择</div>
                        <span class="fi-help-text"></span>
                    </div>
                </div>
                <% } %>
                <div class="formitems">
                    <label class="fi-name">导航名称：</label>
                    <div class="form-controls">
                        <input type="text" name="showtitle" class="input" value="<%= item.showtitle %>">
                    </div>
                </div>
            </div>
            <% } %>
        </div>
    </script>
    <!-- Navigation tpl end-->

    <!--end front template  -->

    <script src="__PUBLIC__/Partner/js/menu/lib-min.js"></script>
    <script src="__PUBLIC__/Partner/js/menu/jquery_003.js"></script>
    <script src="__PUBLIC__/Partner/js/menu/jquery.js"></script>
    <script src="__PUBLIC__/Partner/js/menu/zclip-min.js"></script>

    <!-- 线上环境 -->
    <script src="__PUBLIC__/Partner/js/menu/component-min.js"></script><script>
        var need_verify_set = false;
    </script>

    
    <!-- diy js start-->
    <script src="__PUBLIC__/Partner/js/menu/diyUeditor-min.js"></script>
    <script src="__PUBLIC__/Partner/js/menu/jquery_002.js"></script>
    <script src="__PUBLIC__/Partner/js/menu/jquery-ui.js"></script>
    <script src="__PUBLIC__/Partner/js/menu/diy-min.js"></script>
    <script src="__PUBLIC__/Partner/js/menu/colorpicker.js"></script><!-- diy js end -->
    <script src="__PUBLIC__/Partner/js/menu/navigation.js"></script>


 
    <include file="Public:footer" />